| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| 3.0.5 source code.tar.gz | 2025-11-27 | 283.9 kB | |
| 3.0.5 source code.zip | 2025-11-27 | 454.3 kB | |
| README.md | 2025-11-27 | 635 Bytes | |
| Totals: 3 Items | 738.9 kB | 0 | |
:art: Code improvement(s)
-
Add progress option to customize the upload body size computation (2cd547f)
:::js import ProgressAddon from "wretch/addons/progress"
wretch("https://example.com/upload") .addon(ProgressAddon({ // getUploadTotal allows you to customize the total size of the upload getUploadTotal(url, opts) { // Return the total size of the upload in bytes, or 0 if undertermined }, })) .get() .progress((loaded, total) => console.log(
${(loaded / total * 100).toFixed(0)}%))