# @here/olp-sdk-fetch

> Adds a subset of the fetch API for Node.js

Latest version **3.0.0** (published 2026-08-20) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2026-08-20 |
| First published | 2019-10-15 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 24.0.0 |
| Dependencies | 0 |
| Unpacked size | 21.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 35 |
| Author | HERE Europe B.V. |
| Maintainers | here-bot, here-maps, heremaps |

## Links

- npm: https://www.npmjs.com/package/@here/olp-sdk-fetch
- Repository: https://github.com/heremaps/here-data-sdk-typescript
- Homepage: https://github.com/heremaps/here-data-sdk-typescript#readme
- Issues: https://github.com/heremaps/here-data-sdk-typescript/issues
- npm.io page: https://npm.io/package/@here/olp-sdk-fetch

## Recent versions

- 3.0.0 (latest) — 2026-08-20
- 2.0.0 — 2024-05-10
- 1.9.0 — 2021-02-11
- 1.8.0 — 2020-12-07
- 1.7.0 — 2020-11-03
- 1.6.0 — 2020-09-21
- 1.5.0 — 2020-08-18
- 1.4.0 — 2020-04-30
- 1.3.0 — 2020-03-05
- 1.2.1 — 2020-02-06
- 1.2.0 — 2020-02-04
- 1.1.0 — 2019-12-11
- 1.0.0 — 2019-12-03
- 0.9.1 — 2019-10-18
- 0.9.0 — 2019-10-15

## README

# Fetch Library

## Overview

This module adds a supporting file:// to the [fetch](https://fetch.spec.whatwg.org/) API for [Node.js](https://nodejs.org/). This allows fetching the files from the local folders.

The main goal of this module is to provide the possibility to read files from the local folders with `fetch` API in the Node.js environment.

## Usage

Import the module for its side-effects:

```JavaScript
import "@here/olp-sdk-fetch"
```

This adds `fetch` to the global `Node.js` namespace.

## Behavior in a Browser Context

When this module is used in a browser context, it does not perform any actions, nor adds any code.

## Generate a Bundle

If you want to have a compiled project, you can use bundle commands. After running each of the following commands in the `@here/olp-sdk-fetch` folder from the root folder, you get the JavaScript bundled files.

To have the bundled files with source map, run:

```sh
npm run bundle
```

To get a minified version for production, run:

```sh
npm run bundle:prod
```

To get a bundled and minified JavaScript files, run:

```sh
npm run prepublish-bundle
```

## Use a Bundle from CDN

Add minified JavaScript file to your `html` and create an object of userAuth:

```html
<!DOCTYPE html>
<html lang="en">
    <head>
        <script src="https://unpkg.com/@here/olp-sdk-fetch/bundle.umd.min.js"></script>
    </head>
    <body></body>
</html>
```

## LICENSE

Copyright (C) 2019-2024 HERE Europe B.V.

For license details, see the [LICENSE](LICENSE).

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