{"_id":"isomorphic-unfetch","_rev":"3431015","name":"isomorphic-unfetch","description":"Switches between unfetch & node-fetch for client & server.","dist-tags":{"latest":"4.0.2"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"time":{"modified":"2024-08-27T19:19:38.000Z","created":"2017-02-26T16:46:18.774Z","4.0.2":"2023-01-03T02:29:58.412Z","4.0.1":"2022-12-31T04:21:37.600Z","4.0.0":"2022-12-31T04:20:26.135Z","3.1.0":"2020-09-29T17:51:07.578Z","3.0.0":"2018-09-17T18:02:28.926Z","2.1.1":"2018-07-30T18:33:21.425Z","2.1.0":"2018-07-20T02:41:38.022Z","2.0.0":"2017-06-28T15:15:43.366Z","1.0.0":"2017-03-19T15:06:51.423Z","0.1.0":"2017-02-26T16:46:18.774Z"},"users":{"lqweb":true,"gamersdelight":true,"stephensauceda":true},"repository":{"type":"git","url":"git+https://github.com/developit/unfetch.git"},"versions":{"4.0.2":{"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":{"shasum":"5fc04eeb1053b7b702278e2cf7a3f246cb3a9214","size":1473,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/isomorphic-unfetch/download/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,"_cnpmcore_publish_time":"2023-01-03T02:33:58.243Z","publish_time":1672712998412,"_cnpm_publish_time":1672712998412},"4.0.1":{"name":"isomorphic-unfetch","version":"4.0.1","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":"ed9469aab15e2cd8c243995a8ba964599467e413","bugs":{"url":"https://github.com/developit/unfetch/issues"},"homepage":"https://github.com/developit/unfetch#readme","_id":"isomorphic-unfetch@4.0.1","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"shasum":"53838d175022021c21c55878ebebb2a57ae5ec8e","size":1414,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/isomorphic-unfetch/download/isomorphic-unfetch-4.0.1.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.1_1672460497450_0.03724760876641975"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-31T04:21:40.336Z","publish_time":1672460497600,"_cnpm_publish_time":1672460497600},"4.0.0":{"name":"isomorphic-unfetch","version":"4.0.0","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":"^4.2.0"},"gitHead":"e8f8baa5c1aaf4f70afcfcc6bfa8b592fae6c861","bugs":{"url":"https://github.com/developit/unfetch/issues"},"homepage":"https://github.com/developit/unfetch#readme","_id":"isomorphic-unfetch@4.0.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"shasum":"439422d68014e9355680e011ec05878c3a65672d","size":1412,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/isomorphic-unfetch/download/isomorphic-unfetch-4.0.0.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.0_1672460425982_0.8287938562176747"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-31T04:20:29.229Z","publish_time":1672460426135,"_cnpm_publish_time":1672460426135},"3.1.0":{"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":{"shasum":"87341d5f4f7b63843d468438128cb087b7c3e98f","size":1273,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/isomorphic-unfetch/download/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,"publish_time":1601401867578,"_cnpm_publish_time":1601401867578,"_cnpmcore_publish_time":"2021-12-16T13:13:39.489Z"},"3.0.0":{"name":"isomorphic-unfetch","version":"3.0.0","description":"Switches between unfetch & node-fetch for client & server.","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.2.0","unfetch":"^4.0.0"},"bugs":{"url":"https://github.com/developit/unfetch/issues"},"homepage":"https://github.com/developit/unfetch#readme","_id":"isomorphic-unfetch@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.9.0","_npmUser":{"name":"developit","email":"jason@developit.ca"},"dist":{"shasum":"de6d80abde487b17de2c400a7ef9e5ecc2efb362","size":1218,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/isomorphic-unfetch/download/isomorphic-unfetch-3.0.0.tgz"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-unfetch_3.0.0_1537207348822_0.8855459454831818"},"_hasShrinkwrap":false,"publish_time":1537207348926,"_cnpm_publish_time":1537207348926,"_cnpmcore_publish_time":"2021-12-16T13:13:39.753Z"},"2.1.1":{"name":"isomorphic-unfetch","version":"2.1.1","description":"Switches between unfetch & node-fetch for client & server.","files":["index.js","index.d.ts","browser.js"],"browser":"browser.js","main":"index.js","types":"index.d.ts","dependencies":{"node-fetch":"^2.1.2","unfetch":"^3.1.0"},"_id":"isomorphic-unfetch@2.1.1","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"developit","email":"jason@developit.ca"},"dist":{"shasum":"c321770bcd682c5c8550f31146fc7dd21ac33e7b","size":1206,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/isomorphic-unfetch/download/isomorphic-unfetch-2.1.1.tgz"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-unfetch_2.1.1_1532975601348_0.802042683318702"},"_hasShrinkwrap":false,"publish_time":1532975601425,"_cnpm_publish_time":1532975601425,"_cnpmcore_publish_time":"2021-12-16T13:13:39.972Z"},"2.1.0":{"name":"isomorphic-unfetch","version":"2.1.0","description":"Switches between unfetch & node-fetch for client & server.","files":["index.js","index.d.ts","browser.js"],"browser":"browser.js","main":"index.js","types":"index.d.ts","dependencies":{"node-fetch":"^2.1.2","unfetch":"^3.1.0"},"_id":"isomorphic-unfetch@2.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"developit","email":"jason@developit.ca"},"dist":{"shasum":"dedc3a393a07bfb9295cf33104196f86905f66a9","size":1213,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/isomorphic-unfetch/download/isomorphic-unfetch-2.1.0.tgz"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/isomorphic-unfetch_2.1.0_1532054497909_0.5479696589604763"},"_hasShrinkwrap":false,"publish_time":1532054498022,"_cnpm_publish_time":1532054498022,"_cnpmcore_publish_time":"2021-12-16T13:13:40.221Z"},"2.0.0":{"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","size":881,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/isomorphic-unfetch/download/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":{},"publish_time":1498662943366,"_hasShrinkwrap":false,"_cnpm_publish_time":1498662943366,"_cnpmcore_publish_time":"2021-12-16T13:13:40.458Z"},"1.0.0":{"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","size":462,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/isomorphic-unfetch/download/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":{},"publish_time":1489936011423,"_hasShrinkwrap":false,"_cnpm_publish_time":1489936011423,"_cnpmcore_publish_time":"2021-12-16T13:13:40.653Z"},"0.1.0":{"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","size":311,"noattachment":false,"key":"/isomorphic-unfetch/-/isomorphic-unfetch-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/isomorphic-unfetch/download/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":{},"publish_time":1488127578774,"_hasShrinkwrap":false,"_cnpm_publish_time":1488127578774,"_cnpmcore_publish_time":"2021-12-16T13:13:40.831Z"}},"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","_attachments":{},"homepage":"https://github.com/developit/unfetch#readme","bugs":{"url":"https://github.com/developit/unfetch/issues"},"license":"MIT"}