{"name":"isomorphic-unfetch","version":"4.0.2","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":"^5.0.0"},"gitHead":"ee5810e7f9cd769677984b159d7e250adf4611b9","bugs":{"url":"https://github.com/developit/unfetch/issues"},"homepage":"https://github.com/developit/unfetch#readme","_id":"isomorphic-unfetch@4.0.2","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-1Yd+CF/7al18/N2BDbsLBcp6RO3tucSW+jcLq24dqdX5MNbCNTw1z4BsGsp4zNmjr/Izm2cs/cEqZPp4kvWSCA==","shasum":"5fc04eeb1053b7b702278e2cf7a3f246cb3a9214","tarball":"http://registry-npm.ywwl.com/isomorphic-unfetch/download/isomorphic-unfetch-4.0.2.tgz","fileCount":7,"unpackedSize":3378,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXmb+Ynlj05iynsWUhL2EXIWGSOrG9V0ad8MOUsVk07wIgRSdE48f8lFBGHaLN0RUDDBnNfIANIz3T6PY8LfM36nw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjs5MmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrj2w/+NrkW3ese7tD3ThSO17OPXd67onLCb+kkg8HEqs5rpRs0tYB5\r\netpyBIOHs3q7k8807ite+U1aIEn99caW9RwIEGQYUfEeRBjOnd077x+n+RnR\r\n2fUaA2O8yKqm/1SYMSr2c23JtqDTAGoQC5c6RoN73xEiiKbFfVZN2EFdHX2H\r\nwe8sDX2NLO5pGx7KUYNUMpp7g4zXeu5BXrtGWe519/JF9xzb3vbJxXeM8+al\r\nA1+q0ni7hl8ctZ5hj9pHv4K9TbTNpLQATcKGurHlGHIm2RvV+gt38puFYqSx\r\nSMxZ7MVeq3cNGbXsRRVyxgTBYNCYbDxGyEvVync4hB5HS+LCW8Ry5acULAc4\r\nwBHeqHyCzGaEyXQdVBTl/XKM+i5I9LMiSCFMC5ZTrlapOLwR2M8JlFcI7A7u\r\n7Vw50Hn48BsFD/n2Rxm/DB9t8+TrQWAJGlmXElTB1pj1l9Thr5Ly54N3Sf+a\r\njSB5RkaGu3GzUH8c/3Pli9oHgdOYdpvHm6u8Qgsidwt149qq88h3e3O7TlEG\r\nMwbghZ8vOZuhJSo/3AAxTlT3nwuY2eTrm8FLLibu8R43XuFAC2NFtJqgcBK9\r\niab0YdXWyA3sBEAJ5bwk0iSUwgcEOLAf5qBl5tP8yp/JwMblKatyHwttabfn\r\nWB3tD8uZOdvv6OCdWsLqevLndayJu8ICyqk=\r\n=z1Rb\r\n-----END PGP SIGNATURE-----\r\n","size":1473,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-4.0.2.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.2_1672712998270_0.7530419428633421"},"_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":1672712998412,"_cnpm_publish_time":1672712998412,"dist-tags":{"latest":"4.0.2"}}