{"name":"@remix-run/web-fetch","version":"4.3.3","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":"d2a003fe92096aaf97ab2a618b74875ccaadc280","_id":"@remix-run/web-fetch@4.3.3","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-DK9vA2tgsadcFPpxW4fvN198tiWpyPhwR0EYOuM4QjpDCz0G619c9RDMdyMy6a7Qb/jwiyx9SOPHWc65QAl+1g==","shasum":"708371a43f20e645090150dfadb983e950bff12d","tarball":"http://registry-npm.ywwl.com/@remix-run/web-fetch/download/@remix-run/web-fetch-4.3.3.tgz","fileCount":55,"unpackedSize":262275,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE0dMMunldiXaI378jH9fMDC9Au3ove+QbNsnA+IuVajAiEA6z7u5ulIARl2oaUElstpHy7VOWmBzvN+qCiFXkvCMiI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFJXTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqPoA//TegjIJEetXffkm6tWFbayeb4dUTzc52n33CU9x00zQl1OdSd\r\nnSxFSH1SPB3R8mH6PAtRkt6wdEwmYvUkt6YJb0TS2Hxcatn4i0apjbMo1BQR\r\nDscISxMSfwx5jF8X/cCZiMZx7kBYi5irljc+73fZCzN0LYcu9VGR+bNe6Bih\r\nF/vc2enOqrvGA5nTzc61ykKTVpm28Zp0qQxbj/fkJGnjwiZYCqTPNbvNfUqu\r\nv/kt6EH1vxN3GCxZvdc46e3Pf9oR7/vRnQQdIi3wQI1oawB4IObjhx0OmMdg\r\npLEcqk0EVomrtFWz+eymPjiGUAXLP8AJSgdZG9lQBmvJnvtFHYbAYXXzVPrg\r\nJ0YpLPj62ys0YTU1INfhZB1ULj96Ti5k5Mq9FbWFC7ev+BKEjnrfpV6J9vlS\r\nKXcVyMjTd+o7R/zd9Nuc+79307Eyx3CLYfaMewbMO4McOFsVhVnGVlWtwXMA\r\ndYkFK9tUC44ueffkU7D9i2frtLKJGCmsG8CTS7JM5A9qEWlTeLv/FOrIdQ5O\r\n8C7AqV0PXL3v7ED3Zi0ufQ3xyy+QAt1hjav2yusSbavuTmgNbmTXkPOlCx1F\r\nsFFaP+jBin9PkCuh0VqERsC/1cn+7LwIt3xxLtVPE9ZgCQduvXAum2Sa3ztT\r\ndAPVIPKpFrh/JrCfv8hxAcAWDGn3Ozr5Cpo=\r\n=0MmF\r\n-----END PGP SIGNATURE-----\r\n","size":65155,"noattachment":false,"key":"/@remix-run/web-fetch/-/@remix-run/web-fetch-4.3.3.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.3_1679070674913_0.557327252552148"},"_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":1679070675075,"_cnpm_publish_time":1679070675075,"dist-tags":{"latest":"4.4.2","pre":"4.4.2-pre.0"}}