2.0.0 • Published 12 days ago

@here/olp-sdk-fetch v2.0.0

Weekly downloads
329
License
Apache-2.0
Repository
github
Last release
12 days ago

Fetch Library

Overview

This module adds a supporting file:// to the fetch API for Node.js. 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:

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:

npm run bundle

To get a minified version for production, run:

npm run bundle:prod

To get a bundled and minified JavaScript files, run:

npm run prepublish-bundle

Use a Bundle from CDN

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

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

2.0.0

12 days ago

1.9.0

3 years ago

1.8.0

3 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.9.1

5 years ago

0.9.0

5 years ago