{"name":"@remix-run/web-fetch","version":"4.3.2","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":"57acdf2a75046faaf021331cf5ccb3baa8d25835","_id":"@remix-run/web-fetch@4.3.2","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-aRNaaa0Fhyegv/GkJ/qsxMhXvyWGjPNgCKrStCvAvV1XXphntZI0nQO/Fl02LIQg3cGL8lDiOXOS1gzqDOlG5w==","shasum":"193758bb7a301535540f0e3a86c743283f81cf56","tarball":"http://registry-npm.ywwl.com/@remix-run/web-fetch/download/@remix-run/web-fetch-4.3.2.tgz","fileCount":55,"unpackedSize":260561,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQ6a8i4TlPURVK3JVtmG5pfbOVFF3CLzirc5BodCT9SwIhAL62oZo4xTGQJQs/ZGQbzyCUcm8g2/EaYQGSgLwcmuJA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdoPBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJTA/9G+xTF8M0HQKudnVh9Hv9xUiAFLozU8uRRQjcTYEdr44toXXS\r\nb2EZ7ti9aEkeJ2v2TaEFIgBEkk4vQqreXG/DCFzdhRAW0qMt9fbnf9UiuPm5\r\n59G0UOQhnBjc5oPC/Zfj14iU84asxvsVkiE74vdNFd+X8cJjC1CmhPlnRe9y\r\nJuoqJz/l1BS1BwVS+Yq8iRsIBuUMmOIV84B9cvGgpxmQil8nfOaZjbUjq3cf\r\nDGFDmwo4nEFUlbR4a1mJbsxS4CLIsJe66o43UoVbAjl2OkT7KFqlOjbJ5daK\r\n9KvboKjS5WjRTGcwab5sKCxAdxcg6GA3OsLa2+cRV8EVmigdjohnYHAqN7l5\r\nrlZQrJjEwAAeNJilQkDSbx6TNIxkFv+JsjJKwBRbcHaPRmtVbL/3YB5noJvs\r\nIfxXil2sPYuPNWwcKqx+8atLNIgTZ5hVu3RmN+h26pyga/2Ic+CDwRnj+wVT\r\noaomu6Xt4kB/H0drInHhMaQxPIrG9Uz52xdjjk7wXQ9rzV1Iy88qOjY1F3Hl\r\n05mvfZ+SElH2oHcywlaqp6JDnyPYgPw0iM4dSPkY7slMdkueOk7/fcMLaj0F\r\n0PRF0CEsmpijZy1MVN6FoPJQcKO79zEx43lm3nezoexOiyB4cKINmbr1FCMn\r\nQssUknUbEADxHC9GhPOOBv+Ky/o0VM/jz68=\r\n=opXR\r\n-----END PGP SIGNATURE-----\r\n","size":64639,"noattachment":false,"key":"/@remix-run/web-fetch/-/@remix-run/web-fetch-4.3.2.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.2_1668711361255_0.8846938064000733"},"_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":1668711361439,"_cnpm_publish_time":1668711361439,"dist-tags":{"latest":"4.4.2","pre":"4.4.2-pre.0"}}