{"name":"isomorphic-unfetch","version":"3.1.0","description":"Switches between unfetch & node-fetch for client & server.","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":"^2.6.1","unfetch":"^4.2.0"},"bugs":{"url":"https://github.com/developit/unfetch/issues"},"homepage":"https://github.com/developit/unfetch#readme","_id":"isomorphic-unfetch@3.1.0","_nodeVersion":"12.16.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-geDJjpoZ8N0kWexiwkX8F9NkTsXhetLPVbZFQ+JTW239QNOwvB0gniuR1Wc6f0AMTn7/mFGyXvHTifrCp/GH8Q==","shasum":"87341d5f4f7b63843d468438128cb087b7c3e98f","tarball":"http://registry-npm.ywwl.com/isomorphic-unfetch/download/isomorphic-unfetch-3.1.0.tgz","fileCount":5,"unpackedSize":2496,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfc3QLCRA9TVsSAnZWagAAXFMP/0Qdwzul+E4DRRd5oIKJ\n4IcaKQFux1a8BHVMlo2IObW4DSunJNqHgtFRb33+MsLsebn5G1yrVTvCd3zy\nTneoLN42a1ZLDPLQspk5QYPp218VMhD8gM1uxVmNhnYym/f59iORZ2xfFx/E\nyExKJuSle+ikZTVWSmRdH+b8tpDm9uCRhtjRXux8N/jiRK1JTctfaY47ZFOJ\n+XB+cPAuQ1KBkxZyiXjeRFqeP8FRahxhcXZYBra6Uk4IARGqUCP4QW46+yTg\n/KZPMiVO14RUmdvyz8P7VhUCpz+73SqgcphrjrH5Su3YgWPRx4remyGnqQpk\nvkwzepZw/v0UqtAdpw/77p5Gono3BQVMk9pqoHEZZAyDUlFQJ3ECGXnVyAPs\nArSWW/NKyr40hqPzp15q+nOWcMv3sYgOooeAuVDsUZPOHAcG9O7k78bRwiY5\nXgCkCEilCESs/99nClNJibpQYP8Ko25j+KcLmL17k7fIVV5ZzbiZO2UH6gGx\nxWzqAZ5QnZJIGc61EeW3WwnC/dExSDbcMim27ox8yqZgJkDA85x6yz9Kwikf\nsSsifrKKLGgq9mrDoUr3h8NwaMCWBEmE6i+DhRginDbKQ72xkxOq0JUvX9R4\nC0HGGMSpb84G0pra3yJs/LpxCrxCW3XqO2/3cXooEl8Va70RuwkW1iDTC/Aj\n4Wnp\r\n=KRWJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFiphh3xaisP/cmHmjKyLPjg4PbGpgNC9POG5ayu2zX4AiEA9s64DTIUWUkV/sUCiVWUFKpr2CjovxkK3Oj0V032zo8="}],"size":1273,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-3.1.0.tgz"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"_npmUser":{"name":"developit","email":"jason@developit.ca"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-unfetch_3.1.0_1601401867433_0.1347623980379884"},"_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":1601401867578,"_cnpm_publish_time":1601401867578,"dist-tags":{"latest":"4.0.2"}}