Isomorphic-fetch
Isomorphic WHATWG Fetch API, for Node & Browserify
fetch
from GitHub makes it easier to make web requests and handle responses than using an XMLHttpRequest. This polyfill is written as closely as possible to the standard Fetch specification.
Well, fetch
was in the nmotw queue for quite some time now, but this week seems to be special as FF nightly and Chrome canary rolled out this API ;)
Install it: npm install isomorphic-fetch
Sample usage:
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Would log something like:
1 2 |
|
GIF FTW!
Thanks to Matt Andrews for isomorphic-fetch
(: