
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@types/node-fetch
Advanced tools
TypeScript definitions for node-fetch
npm install --save @types/node-fetch
This package contains type definitions for node-fetch (https://github.com/bitinn/node-fetch).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch.
These definitions were written by Torsten Werner, Niklas Lindgren, Vinay Bedre, Antonio Román, Andrew Leedham, Jason Li, Steve Faulkner, ExE Boss, Alex Savin, Alexis Tyler, Jakub Kisielewski, and David Glasser.
Axios is a promise-based HTTP client for the browser and Node.js. It provides an easy-to-use API for making HTTP requests and has built-in support for request and response interceptors, transforming request and response data, and automatic JSON data transformation. Unlike @types/node-fetch, Axios does not require an additional types package for TypeScript support as it includes its own type definitions.
Got is a human-friendly and powerful HTTP request library for Node.js. It supports retries, streams, and pagination, among other features. Got is designed to be more comprehensive than node-fetch, offering more built-in functionalities like caching and request retries. TypeScript types are included in the package, so there's no need for an additional @types package.
Superagent is a light-weight progressive ajax API crafted for flexibility, readability, and a low learning curve after being frustrated with many of the existing request APIs. It works with both Node.js and browser environments. Like Axios, it has built-in type definitions, eliminating the need for a separate types package.
FAQs
TypeScript definitions for node-fetch
The npm package @types/node-fetch receives a total of 16,194,881 weekly downloads. As such, @types/node-fetch popularity was classified as popular.
We found that @types/node-fetch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.