{"name":"isomorphic-unfetch","version":"1.0.0","description":"Switches between unfetch & node-fetch for client & server.","browser":"browser.js","main":"index.js","dependencies":{"node-fetch":"^1.6.3","unfetch":"^2.1.0"},"_id":"isomorphic-unfetch@1.0.0","scripts":{},"_shasum":"aab414b6d764bbd1b8ee6257ad8f1f77e5407574","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"aab414b6d764bbd1b8ee6257ad8f1f77e5407574","tarball":"http://registry-npm.ywwl.com/isomorphic-unfetch/download/isomorphic-unfetch-1.0.0.tgz","integrity":"sha512-gOYKIMZGSZ6+PUwuv6tX82TezmOatq0tpXbHonv60EwgBImPQYs14lM1m7gK8dvzUw4ZJCFy9uRSao9SgqQ1Qg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsyyy9ir13O6Dm6K4g5/dPd7k+mMxCBRMGeBwjw6SM7gIhAOd+zfb39d7cLRuq2YsVDgUoV5O6be3HigECIUOBZ+s7"}],"size":462,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/isomorphic-unfetch-1.0.0.tgz_1489936009558_0.9816954710986465"},"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":1489936011423,"_cnpm_publish_time":1489936011423,"dist-tags":{"latest":"4.0.2"}}