{"_id":"portable-fetch","_rev":"3-711b83d00130bc179fd28aa52de43f07","name":"portable-fetch","description":"Isomorphic WHATWG Fetch API, for Node, Browserify, Webpack & React-Native","dist-tags":{"latest":"3.0.0"},"versions":{"2.3.0":{"name":"portable-fetch","version":"2.3.0","description":"Isomorphic WHATWG Fetch API, for Node, Browserify, Webpack & React-Native","browser":"fetch-npm-browserify.js","react-native":"fetch-npm-react-native.js","main":"fetch-npm-node.js","scripts":{"files":"find . -name '*.js' ! -path './node_modules/*' ! -path './bower_components/*'","test":"jshint `npm run -s files` && lintspaces -i js-comments -e .editorconfig `npm run -s files` && mocha"},"repository":{"type":"git","url":"git+https://github.com/knotis/isomorphic-fetch.git"},"author":{"name":"Matt Andrews","email":"matt@mattandre.ws"},"license":"MIT","bugs":{"url":"https://github.com/knotis/isomorphic-fetch/issues"},"homepage":"https://github.com/knotis/isomorphic-fetch/issues","dependencies":{"node-fetch":"^1.0.1","whatwg-fetch":">=0.10.0"},"devDependencies":{"chai":"^1.10.0","es6-promise":"^2.0.1","jshint":"^2.5.11","lintspaces-cli":"^0.1.1","mocha":"^2.1.0","nock":"^0.56.0","npm-prepublish":"^1.0.2"},"gitHead":"e1bd5535dab475d296d165a7a1092e70a7a506f3","_id":"portable-fetch@2.3.0","_shasum":"6499aaf03dbfaf69b19d11ac384e229405df2350","_from":".","_npmVersion":"3.7.3","_nodeVersion":"4.3.1","_npmUser":{"name":"sethdenner","email":"seth@knotis.com"},"dist":{"shasum":"6499aaf03dbfaf69b19d11ac384e229405df2350","tarball":"https://registry.npmjs.org/portable-fetch/-/portable-fetch-2.3.0.tgz","integrity":"sha512-9WUYArk/8SaK8ySWT9ygrq5vXZe8o8RTNBfmjphFT962gS1wyitfJ3/LTUfczTcadxMhEP2PPfQIhG8W9wj/+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB7u4go6V9XaRhaVYEcBtDWOxMDaA36cmaisu5xpX47iAiEA1SnfhAeHd2qHU0uNCuQcQ2DTxW212V9dXGnS2DBKaDU="}]},"maintainers":[{"name":"sethdenner","email":"seth@knotis.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/portable-fetch-2.3.0.tgz_1498785325542_0.22394016571342945"}},"3.0.0":{"name":"portable-fetch","version":"3.0.0","description":"Isomorphic WHATWG Fetch API, for Node, Browserify, Webpack & React-Native","browser":"fetch-npm-browserify.js","react-native":"fetch-npm-react-native.js","main":"fetch-npm-node.js","scripts":{"files":"find . -name '*.js' ! -path './node_modules/*' ! -path './bower_components/*'","test":"jshint `npm run -s files` && lintspaces -i js-comments -e .editorconfig `npm run -s files` && mocha"},"repository":{"type":"git","url":"git+https://github.com/knotis/isomorphic-fetch.git"},"author":{"name":"Matt Andrews","email":"matt@mattandre.ws"},"license":"MIT","bugs":{"url":"https://github.com/knotis/isomorphic-fetch/issues"},"homepage":"https://github.com/knotis/isomorphic-fetch/issues","dependencies":{"node-fetch":"^1.0.1","whatwg-fetch":">=0.10.0"},"devDependencies":{"chai":"^1.10.0","es6-promise":"^2.0.1","jshint":"^2.5.11","lintspaces-cli":"^0.1.1","mocha":"^2.1.0","nock":"^0.56.0","npm-prepublish":"^1.0.2"},"gitHead":"2454cfbb607784b009c0e959a8cde230c5479d23","_id":"portable-fetch@3.0.0","_shasum":"3cbf4aa6dbc5a5734b41c0419c9273313bfd9ad8","_from":".","_npmVersion":"3.7.3","_nodeVersion":"4.3.1","_npmUser":{"name":"sethdenner","email":"seth@knotis.com"},"dist":{"shasum":"3cbf4aa6dbc5a5734b41c0419c9273313bfd9ad8","tarball":"https://registry.npmjs.org/portable-fetch/-/portable-fetch-3.0.0.tgz","integrity":"sha512-2Gl204JKeJSFH3sIboK4iMPPaZI223xfBMHfQMcULTwySt2skWEd5OnYhtciPtHoxGzyaNLkGCalNfivCKxhQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCf2ips1gkY+vp0XS5LKL5yHSbTOuswYlmDDLTUyjf+CgIhAJOSjVIcUISheyc+HJxVP16uS/d09uVI9CdAd9T0AodO"}]},"maintainers":[{"name":"sethdenner","email":"seth@knotis.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/portable-fetch-3.0.0.tgz_1499286313813_0.18890614435076714"}}},"readme":"isomorphic-fetch [![Build Status](https://travis-ci.org/matthew-andrews/isomorphic-fetch.svg?branch=master)](https://travis-ci.org/matthew-andrews/isomorphic-fetch)\n================\n\nFetch for node and Browserify. Also works in Webpack and React-Native Built on top of [GitHub's WHATWG Fetch polyfill](https://github.com/github/fetch).\n\n## Warnings\n\n- This adds `fetch` as a global so that its API is consistent between client and server.\n- You must bring your own ES6 Promise compatible polyfill, I suggest [es6-promise](https://github.com/jakearchibald/es6-promise).\n\nFor [ease-of-maintenance and backward-compatibility reasons][why polyfill], this library will always be a polyfill. As a \"safe\" alternative, which does not modify the global, consider [fetch-ponyfill][].\n\n[why polyfill]: https://github.com/matthew-andrews/isomorphic-fetch/issues/31#issuecomment-149668361\n[fetch-ponyfill]: https://github.com/qubyte/fetch-ponyfill\n\n## Installation\n\n### NPM\n\n```sh\nnpm install --save portable-fetch es6-promise\n```\n\n## Usage\n\n```js\nrequire('es6-promise').polyfill();\nrequire('portable-fetch');\n\nfetch('//offline-news-api.herokuapp.com/stories')\n\t.then(function(response) {\n\t\tif (response.status >= 400) {\n\t\t\tthrow new Error(\"Bad response from server\");\n\t\t}\n\t\treturn response.json();\n\t})\n\t.then(function(stories) {\n\t\tconsole.log(stories);\n\t});\n```\n\n## License\n\nAll open source code released by FT Labs is licenced under the MIT licence.  Based on [the fine work by](https://github.com/github/fetch/pull/31) **[jxck](https://github.com/Jxck)**.\n","maintainers":[{"name":"sethdenner","email":"seth@knotis.com"}],"time":{"modified":"2022-06-24T08:44:27.978Z","created":"2017-06-30T01:15:25.726Z","2.3.0":"2017-06-30T01:15:25.726Z","3.0.0":"2017-07-05T20:25:13.912Z"},"homepage":"https://github.com/knotis/isomorphic-fetch/issues","repository":{"type":"git","url":"git+https://github.com/knotis/isomorphic-fetch.git"},"author":{"name":"Matt Andrews","email":"matt@mattandre.ws"},"bugs":{"url":"https://github.com/knotis/isomorphic-fetch/issues"},"license":"MIT","readmeFilename":"README.md"}