{"name":"@remix-run/web-fetch","version":"4.3.1","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":{".":{"browser":"./src/lib.js","require":"./dist/lib.node.cjs","import":"./src/lib.node.js","types":"./dist/src/lib.node.d.ts"},"./package.json":"./package.json","./body":{"import":"./src/body.js","types":"./dist/src/body.d.ts"},"./src/request.js":{"import":"./src/request.js","types":"./dist/src/request.d.ts"},"./src/response.js":{"import":"./src/response.js","types":"./dist/src/response.d.ts"},"./src/headers.js":{"import":"./src/headers.js","types":"./dist/src/headers.d.ts"}},"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.4","@remix-run/web-form-data":"^3.0.3","@remix-run/web-stream":"^1.0.3","@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":"f715b354c8c5b8edc550c5442dec5712705e25e7","_id":"@remix-run/web-fetch@4.3.1","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-TOpuJo3jI7/qJAY0yTnvNJRQl4hlWAOHUHYKAbEddcLFLydv+0/WGT6OaIurJKsBFJJTjooe3FbKiP74sUIB/g==","shasum":"afc88e133bed1a6aecb9d09b1b02127fc844da47","tarball":"http://registry-npm.ywwl.com/@remix-run/web-fetch/download/@remix-run/web-fetch-4.3.1.tgz","fileCount":55,"unpackedSize":259656,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdsoH42cdpJ6RMu6C/JxEao+sbGB0gv3AFHP+Wzm62MAIhAJI48Q/SsP99tpnbgv9wEnONPz1ZPnCYIV4bd2QW8Snp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTbO+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrz9Q//Sq0qtaqhZk9+NelrD7V3iI+IvNJGIbk3EykZ1zztHs5Opi2C\r\neDrrWu4CczUD1syCHdCPFXFH+ht5X25mWLaHUvucX5cCYjPnXidfOrnaoAx4\r\nFMqShvziXxU2iH+hA04kpFiYhz7Go0CHXfyIDGpM7t1I6AHy1wq7oRCSSuDL\r\n760Gu23PBWSdQ9eS90fpV/ZovJPhPBHyccro1pS1G/vH9MlkM5l0ySTowgRo\r\nsfGRcrnFw3LPHSy1K63eQBkOBEpmL3v1x40pvpo+56srZYVsh30Jjowle6EM\r\nNuUMg9feqaY8x1nnQ+gLdzCUGTZk99Vz5z19hVZv2okIfdyEJdbi37HLPCoe\r\nu+G/XY3tPHsiOLYDhMPX8PNNs+PFtwgIxLgiNECJv7gFgMufxNqvumc42Ot3\r\nVHpVbNx9Glcc6RTzO+zfwmtcbjrq5BAXtx8VMIWTr6c665hNWue1vXycFbvY\r\nVdUuMSq5MSWYOJba+Q/RWH4XnYf5JFAL0cYwOtITkobr2WaJ/juruez+VdVY\r\nDSVe03+pIhNgBfmSl/u6QNqv8e7bn4rS2Wqb5uhx3Txk0CQMJU/u+TQIlg+m\r\nlzjysScF7f/a6YbfMiuYvOy3lAnaaiipcr8jIdNmfWSBjurt6CT9MOHx0oqn\r\nKycJBD5+iDU+DGV4Rh6OytBloRUN6SqKyy0=\r\n=qWbe\r\n-----END PGP SIGNATURE-----\r\n","size":64458,"noattachment":false,"key":"/@remix-run/web-fetch/-/@remix-run/web-fetch-4.3.1.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.1_1666036670584_0.043979795292561574"},"_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":1666036670775,"_cnpm_publish_time":1666036670775,"dist-tags":{"latest":"4.4.2","pre":"4.4.2-pre.0"}}