What is the difference between isomorphic-fetch and fetch?

Joshua Rajandiran picture Joshua Rajandiran · Jun 21, 2016 · Viewed 40.2k times · Source

I've seen two different fetch here:

Can someone tell me the difference between the two?

PS: I've read the README.md but I still didn't get the difference. Last time I checked, Isomorphic means it has similar form or relation. It still doesn't make sense to me.

Answer

Sergey picture Sergey · Jun 21, 2016

FETCH is polyfill for browsers which don't have fetch function (caniuse.com/#search=fetch). It will add fetch function to your browser window object.

While isomorphic-fetch is implementation of fetch for both node.js and browser, built on top of fetch polyfill.