{"_id":"@ashlesss/fast-fetch","_rev":"2-0c7ce161fe5fa5ab9e1f004af244e59b","name":"@ashlesss/fast-fetch","dist-tags":{"latest":"1.0.7"},"versions":{"1.0.6":{"name":"@ashlesss/fast-fetch","version":"1.0.6","author":"","license":"MIT","_id":"@ashlesss/fast-fetch@1.0.6","maintainers":[{"name":"ashlesss","email":"hidahza@gmail.com"}],"homepage":"https://github.com/fastblob/fast-fetch#readme","bugs":{"url":"https://github.com/fastblob/fast-fetch/issues"},"dist":{"shasum":"1bc679108a94dcf096184c6ba3d7ff30122d523f","tarball":"https://registry.npmjs.org/@ashlesss/fast-fetch/-/fast-fetch-1.0.6.tgz","fileCount":41,"integrity":"sha512-s7pagl15i4dOZ81lJ7UkSnl5dDZZvyHXvY/niD+L705WcRUmWDWoWoqBcudclI3bcXLL2k9Ia8tOSRbVCKXfjA==","signatures":[{"sig":"MEUCIQCnPdIQeqkhvdgD5NZgPXpoq1bEniAlT90eECKOmqNzJAIgD+PATKaI9x7cWeDQJ9f9ppkQ83WoL+89CwORQgiEUcU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26849},"main":"lib/index.js","type":"module","types":"lib/index.d.ts","module":"lib/index.js","gitHead":"496e7b5a51b9c75424c2e0fc6be2b5baff07c25b","scripts":{"lint":"eslint src/** --fix","test":"echo \"Error: no test specified\" && exit 1","build":"tsc","typecheck":"tsc --noEmit","prepublish":"npm run build"},"_npmUser":{"name":"ashlesss","email":"hidahza@gmail.com"},"repository":{"url":"git+https://github.com/ashless/fast-fetch.git","type":"git"},"_npmVersion":"11.9.0","description":"JavaScript fetch in parallel and segmented way","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.26.0","typescript":"^4.8.4","eslint-plugin-n":"^15.4.0","eslint-plugin-import":"^2.26.0","eslint-plugin-promise":"^6.1.1","@typescript-eslint/eslint-plugin":"^5.42.0","eslint-config-standard-with-typescript":"^23.0.0"},"_npmOperationalInternal":{"tmp":"tmp/fast-fetch_1.0.6_1788859916545_0.5271524333985493","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@ashlesss/fast-fetch","version":"1.0.7","description":"JavaScript fetch in parallel and segmented way","main":"lib/index.js","module":"lib/index.js","types":"lib/index.d.ts","type":"module","scripts":{"build":"tsc","lint":"eslint src/** --fix","prepublish":"npm run build","typecheck":"tsc --noEmit","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ashless/fast-fetch.git"},"author":"","license":"MIT","bugs":{"url":"https://github.com/fastblob/fast-fetch/issues"},"homepage":"https://github.com/fastblob/fast-fetch#readme","devDependencies":{"@typescript-eslint/eslint-plugin":"^5.42.0","eslint":"^8.26.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.26.0","eslint-plugin-n":"^15.4.0","eslint-plugin-promise":"^6.1.1","typescript":"^4.8.4"},"gitHead":"12923bc6919d438ad9fc6b4d93e2f3b197fc7d94","_id":"@ashlesss/fast-fetch@1.0.7","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-4TB4zNpIP5i3qLaG90XWbvIUEy4PGWY1YhdavcM558HHLQEebvslw4JhmG/EmSA3xAykhAhigAJAMzFLhNe+Vg==","shasum":"4e66ea7e0943ac91bff4dda7972bcb9e5f937837","tarball":"https://registry.npmjs.org/@ashlesss/fast-fetch/-/fast-fetch-1.0.7.tgz","fileCount":41,"unpackedSize":26849,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBr6+A3JjwTKdmNmJxbMs5ikDQ68XvpWHZrvZy8n4Pw5AiEAs6ax6jjqr32rUzswdg0thAJwLlb+PE8NbLy7PE+AfKE="}]},"_npmUser":{"name":"ashlesss","email":"hidahza@gmail.com"},"directories":{},"maintainers":[{"name":"ashlesss","email":"hidahza@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fast-fetch_1.0.7_1788921047800_0.527102789319366"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-08T09:31:56.070Z","modified":"2026-09-09T02:30:48.332Z","1.0.6":"2026-09-08T09:31:56.672Z","1.0.7":"2026-09-09T02:30:48.089Z"},"bugs":{"url":"https://github.com/fastblob/fast-fetch/issues"},"license":"MIT","homepage":"https://github.com/fastblob/fast-fetch#readme","repository":{"type":"git","url":"git+https://github.com/ashless/fast-fetch.git"},"description":"JavaScript fetch in parallel and segmented way","maintainers":[{"name":"ashlesss","email":"hidahza@gmail.com"}],"readme":"# fast-fetch\n`fetch` fastly in browser.\n\n\n[![CI](https://github.com/fastblob/fast-fetch/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/fastblob/fast-fetch/actions/workflows/ci.yml)\n\n\n## How It Works\n\n`fast-fetch` is a drop-in replacement of `fetch` API, it segments the request into multiple chunks, and fetch them in parallel, then merge them into a single response.\n\n## Usage\n\n```js\nimport fetch from '@fastblob/fast-fetch';\nconst response = await fetch('https://example.com/test.bin', {\n  fastFetch: {\n    mirrorURLs: ['https://anotherexample.com/test.bin']\n  }\n});\n```\n\n## Configuration\n\n``` ts\n// src/get/request/types.ts\n\ntype FetchInput =  Parameters<typeof fetch>[0]\n\ninterface FastFetchGetConfig {\n  mirrorURLs?: FetchInput[] // mirror URLs\n  maxRetries?: number // max retry for each mirror\n  retryDelay?: number // delay between retries\n  logger?: Partial<Logger> // logger\n  chunkCallback?: (chunk: Blob, range: [number, number], input: FetchInput) => void\n}\n```\n\n## Note\n\nOnly `GET` and `HEAD` requests are supported. Other methods will use the original `fetch` API.\n\n\n## Polyfills?\n| caniuse | polyfill |\n|---|---|\n| [AbortController](https://caniuse.com/abortcontroller) | [mo/abortcontroller-polyfill](https://github.com/mo/abortcontroller-polyfill) |\n| [Blob API: `stream`](https://caniuse.com/mdn-api_blob_stream) | [eligrey/Blob.js](https://github.com/eligrey/Blob.js) |\n| [Promise.any](https://caniuse.com/mdn-javascript_builtins_promise_any) | [zloirock/corejs](https://github.com/zloirock/core-js#promiseany) |\n| [TransformStream](https://caniuse.com/mdn-api_transformstream) | [MattiasBuelens/web-streams-polyfill](https://github.com/MattiasBuelens/web-streams-polyfill) |\n\n## License\n\nMIT","readmeFilename":"README.md"}