iso-whatwg-fetch
1.0.1 • Public • Published iso-whatwg-fetch
UMD Fetch Module build on top of WHATWG Fetch polyfill & node-fetch
Warnings
- You must bring your own ES6 Promise compatible polyfill,WHATWG suggest es6-promise.
Installation
npm install --save iso-whatwg-fetch
Usage
commonjs/commonjs2
var fetch = require('iso-whatwg-fetch');
fetch('http://www.google.com').then(function(res) {
console.log(res);
});
amd
require('iso-whatwg-fetch', function(fetch){
fetch('http://www.google.com').then(function(res) {
console.log(res);
});
})
browser
<script src="/path/to/iso-whatwg-fetch/lib/index.min.js"></script>
<script type="text/javascript">
fetch('http://www.google.com').then(function(res){
console.log(res);
})
</script>
fetch api doc
Please see WHATWG Fetch repo
License
MIT
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.1
1
Version History
- VersionDownloads (Last 7 Days)
- 1.0.1
1
Package Sidebar
Install
Weekly Downloads