{"name":"isomorphic-unfetch","version":"0.1.0","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":{"name":"Jason Miller","email":"jason@developit.ca","url":"http://jasonformat.com"},"license":"ISC","_id":"isomorphic-unfetch@0.1.0","_shasum":"620a7fa360797c60e748679f46cf18529abcafc8","_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":"620a7fa360797c60e748679f46cf18529abcafc8","tarball":"http://registry-npm.ywwl.com/isomorphic-unfetch/download/isomorphic-unfetch-0.1.0.tgz","integrity":"sha512-HInb0IOGZizS07t/TsuBQKg4rvOuMr3Ko/C81yRLyNl51iIqW/T3j3xhimrxq4ZcBIa00IT7yVXzdJBLJxvzZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWoZI0LTGOhoT4CD5+xKy3hAOsbqEefLojKe19KqhseQIgaKVVFLVXh8lmLrfJFFRfZaZdEVrDQy1UqQzAyp+ihnI="}],"size":311,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/isomorphic-unfetch-0.1.0.tgz_1488127576988_0.24525059526786208"},"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":1488127578774,"_cnpm_publish_time":1488127578774,"dist-tags":{"latest":"4.0.2"}}