3.0.3 • Published 9 years ago
@vovkasm/fetch-ponyfill v3.0.3
Fetch Ponyfill
WHATWG
fetchponyfill
This module wraps the github/fetch polyfill in a CommonJS module
for browserification, and avoids appending anything to the window, instead returning a setup
function when fetch-ponyfill is required. Inspired by
object-assign.
When used in Node, delegates to node-fetch instead.
Usage
const {fetch, Request, Response, Headers} = require('fetch-ponyfill')(options);where options is an object with the following optional properties:
| option | description | 
|---|---|
| Promise | An A+ Promise implementation. Defaults to window.Promisein the browser, andglobal.Promisein Node. | 
| XMLHttpRequest | The XMLHttpRequest constructor. This is useful to feed in when working with Firefox OS. Defaults to window.XMLHttpRequest. Has no effect in Node. | 
3.0.3
9 years ago