@here/harp-fetch
This module adds a subset of the fetch API for Node.js
Last updated 9 days ago by here-maps .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @here/harp-fetch 
SYNC missed versions from official npm registry.

@here/harp-fetch

##Overview

This module adds a subset of the fetch API for Node.js. This allows code written for the browser to also execute in Node.js.

The main goal of this module is to provide enough compatibility to allow running unit tests in Node.js. It is not 100% feature and behavior compatible with fetch.

The feature set is that of node-fetch with the addition of a dummy AbortController.

Usage

Import the module for its side-effects:

import "@here/harp-fetch"

This adds fetch to the global Node.js namespace.

Behavior in Browser Context

When this module is used in a browser context, it does nothing and adds no code.

Current Tags

  • 0.4.0-alpha.0                                ...           alpha (9 months ago)
  • 0.17.0                                ...           latest (9 days ago)

14 Versions

  • 0.17.0                                ...           9 days ago
  • 0.16.0                                ...           a month ago
  • 0.15.0                                ...           2 months ago
  • 0.14.0                                ...           3 months ago
  • 0.13.0                                ...           4 months ago
  • 0.12.0                                ...           5 months ago
  • 0.11.0                                ...           8 months ago
  • 0.4.0-alpha.0                                ...           9 months ago
  • 0.3.6                                ...           a year ago
  • 0.3.5                                ...           a year ago
  • 0.3.4                                ...           a year ago
  • 0.3.3                                ...           a year ago
  • 0.3.2                                ...           a year ago
  • 0.3.1                                ...           a year ago
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 7
Last Month 20
Dependencies (1)
Dev Dependencies (13)

Copyright 2014 - 2017 © taobao.org |