{"name":"fetch-ponyfill","version":"6.0.0","description":"A ponyfill (doesn't overwrite the native fetch) for the Fetch specification https://fetch.spec.whatwg.org.","main":"fetch-node.js","browser":"build/fetch-browser.js","config":{"web_port":"8088"},"scripts":{"test":"mocha tests/fetch-node.spec.js","lint":"eslint .","pretest:browserify":"npm run build && browserify tests/fetch-browser.spec.js --outfile build/browser-test-bundle.js","test:browserify":"testem","pretest:webpack":"npm run build && webpack --mode development tests/fetch-browser.spec.js -o build/browser-test-bundle.js","test:webpack":"testem","build":"rimraf build && mkdirp build && node build.js > build/fetch-browser.js","prepublishOnly":"npm run build"},"author":{"name":"Mark Stanley Everitt"},"repository":{"type":"git","url":"git://github.com/qubyte/fetch-ponyfill.git"},"license":"MIT","keywords":["fetch","ponyfill"],"dependencies":{"node-fetch":"~2.0.0"},"devDependencies":{"browserify":"~16.1.0","eslint":"~4.18.0","eslint-config-qubyte":"~1.1.0","mkdirp":"~0.5.1","mocha":"~5.0.0","nock":"~9.2.0","promise":"~8.0.1","rimraf":"~2.6.2","sinon":"~4.4.0","testem":"2.0.0","webpack":"~4.0.0","webpack-cli":"~2.0.9","whatwg-fetch":"~2.0.3"},"files":["fetch-node.js","build/fetch-browser.js","index.d.ts"],"gitHead":"25320b30bafd403b9e657cb4aaf5ad238c790549","bugs":{"url":"https://github.com/qubyte/fetch-ponyfill/issues"},"homepage":"https://github.com/qubyte/fetch-ponyfill#readme","_id":"fetch-ponyfill@6.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.7.0","_npmUser":{"name":"qubyte","email":"mark.s.everitt@gmail.com"},"dist":{"integrity":"sha512-Y67pujjJLFeUXp/vZvw7cy8p0BoZvrZo9psB70tbgcDKtMs7cpjU+oIO2e4IVvPDeMbSFOXip3IFtPko78La4g==","shasum":"1809503d4e3f966920708bb296114e1b69c0c477","tarball":"http://registry-npm.ywwl.com/fetch-ponyfill/download/fetch-ponyfill-6.0.0.tgz","fileCount":7,"unpackedSize":22404,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjcMNbqCbuO6nHnwjWC9R4G7Old8pituQWxozfvYyGCAIhAJhVk7yz1sjfO0lLVelWXm55rmWxepLKycll49zfCHLu"}],"size":6660,"noattachment":false,"key":"/fetch-ponyfill/-/fetch-ponyfill-6.0.0.tgz"},"maintainers":[{"name":"qubyte","email":"mark.s.everitt@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-ponyfill_6.0.0_1519995653221_0.5922561822388162"},"_hasShrinkwrap":false,"readme":"# Fetch Ponyfill\n\n> WHATWG `fetch` [ponyfill](https://ponyfill.com)\n\nThis module wraps the [github/fetch](https://github.com/github/fetch) polyfill in a CommonJS module\nfor browserification, and avoids appending anything to the window, instead returning a setup\nfunction when `fetch-ponyfill` is required. Inspired by\n[object-assign](https://github.com/sindresorhus/object-assign).\n\nWhen used in Node, delegates to `node-fetch` instead.\n\n## Usage\n\n### Browserify\n\n```javascript\nconst {fetch, Request, Response, Headers} = require('fetch-ponyfill')(options);\n```\n\n### Webpack\n\n```javascript\nimport fetchPonyfill from 'fetch-ponyfill';\nconst {fetch, Request, Response, Headers} = fetchPonyfill(options);\n```\n\n### Options\n\nWhere `options` is an object with the following optional properties:\n\n| option | description |\n| ------ | ----------- |\n| `Promise` | An A+ Promise implementation. Defaults to `window.Promise` in the browser, and `global.Promise` in Node. |\n| `XMLHttpRequest` | The XMLHttpRequest constructor. This is useful to feed in when working with Firefox OS. Defaults to `window.XMLHttpRequest`. Has no effect in Node. |\n","publish_time":1519995653381,"_cnpm_publish_time":1519995653381,"dist-tags":{"latest":"7.1.0"}}