{"name":"isomorphic-unfetch","version":"2.0.0","description":"Switches between unfetch & node-fetch for client & server.","browser":"browser.js","main":"index.js","dependencies":{"node-fetch":"^1.7.1","unfetch":"^3.0.0"},"_id":"isomorphic-unfetch@2.0.0","scripts":{},"_shasum":"f50140a4c163d7582b5f37f1591968c4f809a645","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"developit","email":"jason@developit.ca"},"dist":{"shasum":"f50140a4c163d7582b5f37f1591968c4f809a645","tarball":"http://registry-npm.ywwl.com/isomorphic-unfetch/download/isomorphic-unfetch-2.0.0.tgz","integrity":"sha512-nkPtFNu4XOaIighI9U4ziJ4Gtn2HyA1vgKZ5xEh5qDfs5yZPWO/FJl0mWN+ef6ITh0pCNTByHhZo+wXDz2VeUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID8VVQAExIIOfXO/zQixlnDr4tXvohksGIyCC1doyduLAiAWkjV+B0hLaF1FcP47kspwdZEq6YYMmRFwhpIHt/9J3Q=="}],"size":881,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-2.0.0.tgz"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-unfetch-2.0.0.tgz_1498662943213_0.23017705441452563"},"directories":{},"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":1498662943366,"_cnpm_publish_time":1498662943366,"dist-tags":{"latest":"4.0.2"}}