# @here/harp-fetch

> This module adds a subset of the fetch API for Node.js

Latest version **0.28.0** (published 2022-01-17) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @here/harp-fetch
pnpm add @here/harp-fetch
yarn add @here/harp-fetch
bun add @here/harp-fetch
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.28.0 |
| Published | 2022-01-17 |
| First published | 2019-03-12 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 16.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1317 |
| Author | HERE Europe B.V. |
| Maintainers | here-bot, here-maps, heremaps |

## Links

- npm: https://www.npmjs.com/package/@here/harp-fetch
- Repository: https://github.com/heremaps/harp.gl
- Homepage: https://github.com/heremaps/harp.gl#readme
- Issues: https://github.com/heremaps/harp.gl/issues
- npm.io page: https://npm.io/package/@here/harp-fetch

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1

## Recent versions

- 0.28.0 (latest) — 2022-01-17
- 0.4.0-alpha.0 (alpha) — 2019-10-16
- 0.27.1 — 2021-09-30
- 0.27.0 — 2021-09-27
- 0.26.0 — 2021-08-03
- 0.25.0 — 2021-05-25
- 0.24.0 — 2021-04-08
- 0.23.0 — 2021-03-09
- 0.22.0 — 2021-01-28
- 0.21.0 — 2020-11-02
- 0.20.0 — 2020-09-22
- 0.19.0 — 2020-08-19
- 0.18.0 — 2020-07-28
- 0.17.2 — 2020-07-14
- 0.17.0 — 2020-06-23
- … 12 more at https://npm.io/package/@here/harp-fetch/versions

## README

# @here/harp-fetch

##Overview

This module adds a subset of the [fetch](https://harp-fetch.spec.whatwg.org/) API for [Node.js](https://nodejs.org/). 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](https://www.npmjs.com/package/node-fetch) with the addition of a dummy `AbortController`.

## Usage

Import the module for its side-effects:

```JavaScript
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.

---
_Source: https://npm.io/package/@here/harp-fetch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
