farfetched

Build Status Coverage Status dependencies npm version

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