{"name":"@remix-run/web-fetch","version":"4.3.7","description":"Web API compatible fetch implementation","main":"./dist/lib.node.cjs","module":"./src/lib.node.js","types":"./dist/src/lib.node.d.ts","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/src/lib.node.d.ts","browser":"./src/lib.js","require":"./dist/lib.node.cjs","import":"./src/lib.node.js"},"./package.json":"./package.json","./body":{"types":"./dist/src/body.d.ts","import":"./src/body.js"},"./src/request.js":{"types":"./dist/src/request.d.ts","import":"./src/request.js"},"./src/response.js":{"types":"./dist/src/response.d.ts","import":"./src/response.js"},"./src/headers.js":{"types":"./dist/src/headers.d.ts","import":"./src/headers.js"}},"engines":{"node":"^10.17 || >=12.3"},"scripts":{"build":"npm run build:cjs && npm run build:types","test":"node --experimental-modules ../../node_modules/c8/bin/c8 --reporter=html --reporter=lcov --reporter=text --check-coverage node --experimental-modules ../../node_modules/mocha/bin/mocha","test:cjs":"node ./test/commonjs/test-artifact.js","coverage":"c8 report --reporter=text-lcov | coveralls","typecheck":"tsc --build","build:types":"tsc --build","build:cjs":"rollup -c","lint":"xo","prepare":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/remix-run/web-std-io.git"},"keywords":["fetch","http","promise","request","curl","wget","xhr","whatwg"],"author":{"name":"David Frank"},"license":"MIT","bugs":{"url":"https://github.com/remix-run/web-std-io/issues"},"homepage":"https://github.com/remix-run/web-std-io","devDependencies":{"@types/chai":"^4.3.0","@types/chai-as-promised":"^7.1.5","@types/chai-string":"^1.4.2","@types/mocha":"^9.1.0","abortcontroller-polyfill":"^1.7.1","busboy":"^0.3.1","c8":"^7.3.0","chai":"^4.2.0","chai-as-promised":"^7.1.1","chai-iterator":"^3.0.2","chai-string":"^1.5.0","coveralls":"^3.1.0","delay":"^4.4.0","form-data":"^3.0.0","formdata-node":"^2.4.0","mocha":"^8.1.3","p-timeout":"^3.2.0","rollup":"2.47.0","tsd":"^0.13.1","typescript":"^4.4.4","xo":"^0.33.1"},"dependencies":{"@remix-run/web-blob":"^3.0.5","@remix-run/web-form-data":"^3.0.5","@remix-run/web-stream":"^1.0.4","@web3-storage/multipart-parser":"^1.0.0","abort-controller":"^3.0.0","data-uri-to-buffer":"^3.0.1","mrmime":"^1.0.0"},"esm":{"sourceMap":true,"cjs":false},"tsd":{"cwd":"@types","compilerOptions":{"target":"esnext","lib":["es2018","DOM"],"allowSyntheticDefaultImports":false,"esModuleInterop":false}},"xo":{"envs":["node","browser"],"rules":{"complexity":0,"import/extensions":0,"import/no-useless-path-segments":0,"import/no-anonymous-default-export":0,"unicorn/import-index":0,"unicorn/no-reduce":0,"capitalized-comments":0},"ignores":["dist","@types"],"overrides":[{"files":"test/**/*.js","envs":["node","mocha"],"rules":{"max-nested-callbacks":0,"no-unused-expressions":0,"new-cap":0,"guard-for-in":0,"unicorn/prevent-abbreviations":0,"promise/prefer-await-to-then":0,"ava/no-import-test-files":0}},{"files":"example.js","rules":{"import/no-extraneous-dependencies":0}}]},"runkitExampleFilename":"example.js","gitHead":"5a3703c5c17523b9e8d39ad05eb58c3acc1734c3","_id":"@remix-run/web-fetch@4.3.7","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-Ha6TuLiVHBbLuSNRgEQTz01pgG+bZVNogkKZt1cVi0asOuKISl0X2UgPLv+dWBqfcFvTi8CQvYUNuk5c89TcZw==","shasum":"b391cd73bb5ecd8f4603e7151054712d9d5f0328","tarball":"http://registry-npm.ywwl.com/@remix-run/web-fetch/download/@remix-run/web-fetch-4.3.7.tgz","fileCount":55,"unpackedSize":266192,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH+f31CtYC8IGY9FxjnuDpgxG0iFci/LkVrfU4B+t89iAiALXJ/yVIwyXWCWZTJ8qdfUhMIItasOLbPCotxUjufjgQ=="}],"size":65773,"noattachment":false,"key":"/@remix-run/web-fetch/-/@remix-run/web-fetch-4.3.7.tgz"},"_npmUser":{"name":"mjackson","email":"npm@mjackson.me"},"directories":{},"maintainers":[{"name":"chancestrickland","email":"hi@chance.dev"},{"name":"mjackson","email":"npm@mjackson.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-fetch_4.3.7_1692210760868_0.0619383111573204"},"_hasShrinkwrap":false,"readme":"# @remix-run/web-fetch\n\n[![ci][ci.icon]][ci.url]\n[![package][version.icon] ![downloads][downloads.icon]][package.url]\n\nWeb API compatible [fetch API][] for nodejs.\n\n## Comparison to Alternatives\n\n#### [node-fetch][]\n\nThe reason this fork exists is because [node-fetch][] chooses to compromise\nWeb API compatibility and by using nodejs native [Readable][] stream. They way\nthey put it is:\n\n>\n> - Make conscious trade-off when following [WHATWG fetch spec][whatwg-fetch] and [stream spec](https://streams.spec.whatwg.org/) implementation details, document known differences.\n> - Use native Node streams for body, on both request and response.\n>\n\nWe found these incompatibility to be really problematic when sharing code\nacross nodejs and browser rutimes. This library uses [@remix-run/web-stream][] instead.\n\n\n\n[ci.icon]: https://github.com/web-std/io/workflows/fetch/badge.svg\n[ci.url]: https://github.com/web-std/io/actions/workflows/fetch.yml\n[version.icon]: https://img.shields.io/npm/v/@remix-run/web-fetch.svg\n[downloads.icon]: https://img.shields.io/npm/dm/@remix-run/web-fetch.svg\n[package.url]: https://npmjs.org/package/@remix-run/web-fetch\n[downloads.image]: https://img.shields.io/npm/dm/@remix-run/web-fetch.svg\n[downloads.url]: https://npmjs.org/package/@remix-run/web-fetch\n[prettier.icon]: https://img.shields.io/badge/styled_with-prettier-ff69b4.svg\n[prettier.url]: https://github.com/prettier/prettier\n[blob]: https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob\n[fetch-blob]: https://github.com/node-fetch/fetch-blob\n[readablestream]: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream\n[readable]: https://nodejs.org/api/stream.html#stream_readable_streams\n[w3c blob.stream]: https://w3c.github.io/FileAPI/#dom-blob-stream\n[@remix-run/web-stream]:https://github.com/web-std/io/tree/main/stream\n[Uint8Array]:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n[node-fetch]:https://github.com/node-fetch/\n[fetch api]:https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API\n[readable]: https://nodejs.org/api/stream.html#stream_readable_streams\n","publish_time":1692210761090,"_cnpm_publish_time":1692210761090,"dist-tags":{"latest":"4.4.2","pre":"4.4.2-pre.0"}}