{"name":"isomorphic-unfetch","version":"4.0.0","description":"Switches between unfetch & node-fetch for client & server.","exports":{".":{"import":"./index.mjs","default":"./index.js"},"./browser":{"import":"./browser.mjs","default":"./browser.js"},"./package.json":"./package.json"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/developit/unfetch.git"},"browser":"browser.js","main":"index.js","types":"index.d.ts","dependencies":{"node-fetch":"^3.2.0","unfetch":"^4.2.0"},"gitHead":"e8f8baa5c1aaf4f70afcfcc6bfa8b592fae6c861","bugs":{"url":"https://github.com/developit/unfetch/issues"},"homepage":"https://github.com/developit/unfetch#readme","_id":"isomorphic-unfetch@4.0.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-faQdcv4iQsZXTQIRWVVjfibY7CRxLBpvafqrc5ZgEPUXkDDiQu4nqXRtG5SuJUurW2XHM9uwPuna2r4Px2iNKA==","shasum":"439422d68014e9355680e011ec05878c3a65672d","tarball":"http://registry-npm.ywwl.com/isomorphic-unfetch/download/isomorphic-unfetch-4.0.0.tgz","fileCount":5,"unpackedSize":2933,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7voGrcYeb5jxTUDgiF8rAb3CCOmM8zRqGPhAwsTrhPQIgAOUw7cnbXDD8c9IkgnrQvcEfs0AOxdBvMxzi2fW0iz8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjr7iKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmphXg/+JcQMKKOGE7OVAqypVQxSUJzVC4AuHSJOI8boIx3D9XMXKotf\r\nOq/PVum1pLobzZwKWwo0CypI8JKTZ4GyHwVYJdi7qQXs5bobiB8EJZyIv+lf\r\nhn3nD/7m0kEBbPUM2aPhclN0LVo8QULGtwh3UKpfX9/DQRL8oKePUKgH6sLg\r\n+c5yj2X8l4V4ByrIAUGWQTlXB4DNCAGiWgmWOSNLQkL3S3jJ/orpLuUerYoT\r\nblnn7BYbafLL/h8+s+gbDT8F9DPZybdOaa9T4rWnC/42+UsQjWdCH65kLvmp\r\nsQZwg845j8q4mPDzB+u5ZqTnyVLtjbsjmySkmnFrIfX8Ykr36W5HLoY4itz9\r\n5nNJt7FPfxhlwuCB3V20OcuYpAhg7aHJLGtYI+Y6pD/SMjiCSqAnOjwvY2SL\r\n936pA8znXA8lJRVEI0m0zX/eHFSV60GFoaiKADLhc1Xr7Xxk26YHzgbhEpbG\r\nDIzPD1Ew9knS9Ldk6JvHRHUN6Dwu0y2aJBeRmyRcJ3iRh8+0DfdjD2UOpFoZ\r\n1osnYdkWUdSueFn4Y7EvZv1p4wwWa9fK9zBwyKYJBA5lBtl1qODDi8y/XfZw\r\nUfcR5hwTADqkKcOMaatOr4xIw8b7RMPCXja33q9G9nZxSS+TUJprKnpkA1yV\r\nu570EZwcaCoNEDnjQf1X5YtDXydxSWoqTNg=\r\n=yNZP\r\n-----END PGP SIGNATURE-----\r\n","size":1412,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-4.0.0.tgz"},"_npmUser":{"name":"developit","email":"jason@developit.ca"},"directories":{},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-unfetch_4.0.0_1672460425982_0.8287938562176747"},"_hasShrinkwrap":false,"readme":"# Isomorphic Unfetch\n\nSwitches between [unfetch](https://github.com/developit/unfetch) & [node-fetch](https://github.com/bitinn/node-fetch) for client & server.\n\n## Install\n\nThis project uses [node](http://nodejs.org) and [npm](https://npmjs.com). Go check them out if you don't have them locally installed.\n\n> **Note:** This module uses node-fetch 3.x, which is ES Module and requires Node >= 12.20.0.\n\n```sh\n$ npm i isomorphic-unfetch\n```\n\nThen with a module bundler like [rollup](http://rollupjs.org/) or [webpack](https://webpack.js.org/), use as you would anything else:\n\n```javascript\n// using ES6 modules\nimport fetch from \"isomorphic-unfetch\";\n\n// using CommonJS modules\nconst fetch = require(\"isomorphic-unfetch\");\n```\n\n## Usage\n\nAs a [**ponyfill**](https://ponyfill.com):\n\n```js\nimport fetch from \"isomorphic-unfetch\";\n\nfetch(\"/foo.json\")\n  .then((r) => r.json())\n  .then((data) => {\n    console.log(data);\n  });\n```\n\nGlobally, as a [**polyfill**](https://ponyfill.com/#polyfill):\n\n```js\nimport \"isomorphic-unfetch\";\n\n// \"fetch\" is now installed globally if it wasn't already available\n\nfetch(\"/foo.json\")\n  .then((r) => r.json())\n  .then((data) => {\n    console.log(data);\n  });\n```\n\n## License\n\n[MIT License](LICENSE.md) © [Jason Miller](https://jasonformat.com/)\n","publish_time":1672460426135,"_cnpm_publish_time":1672460426135,"dist-tags":{"latest":"4.0.2"}}