Socket
Socket
Sign inDemoInstall

@here/harp-fetch

Package Overview
Dependencies
7
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @here/harp-fetch

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


Version published
Weekly downloads
556
increased by108.24%
Maintainers
3
Install size
498 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 17 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc