farfetched
Isomorphic implementation of the Fetch standard.
- Does not modify global with
fetch
- Consistent API across client and server
Installation
NPM
npm install farfetched --save
CDN
<script src="https://npmcdn.com/farfetchd/dist/fetch.js"></script>
Usage
import fetch from 'farfetched';
fetch('https://news.ycombinator.com/')
.then((response) => response.text())
.then(console.log);
Alternatives
- bitinn/node-fetch - NodeJS fetch implementation
- github/fetch - Browser fetch polyfill
- matthew-andrews/isomorphic-fetch - Isomorphic fetch based on bitinn/node-fetch and github/fetch