Negligible Psychological Misery
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@here/harp-fetch

0.19.0 • Public • Published

@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.

Keywords

none

Install

npm i @here/harp-fetch

DownloadsWeekly Downloads

810

Version

0.19.0

License

Apache-2.0

Unpacked Size

17.2 kB

Total Files

8

Last publish

Collaborators

  • avatar
  • avatar
  • avatar