isomorphic-fetch 和 fetch 有什么区别?

What is the difference between isomorphic-fetch and fetch?

我在这里看到了两种不同的抓取方式:

谁能告诉我两者的区别?

PS:我已经阅读了README.md,但我还是没明白其中的区别。上次我检查时,同构意味着它具有相似的形式或关系。这对我来说仍然没有意义。

FETCH is polyfill for browsers which don't have fetch function (caniuse.com/#search=fetch)。它将为您的浏览器 window 对象添加获取功能。

虽然 isomorphic-fetch 是 node.js 和浏览器的 fetch 实现,构建在 fetch polyfill 之上。

The Fetch API is currently not implemented consistently across browsers. This module will enable you to use fetch in your Node code in a cross-browser compliant fashion.

简而言之,同构抓取是一种更好的使用抓取方式,因为它比原生抓取涵盖了广泛的浏览器API。