Latest Supply Chain Attack:Mini Shai-Hulud Hits @antv npm Packages, 639 Versions Compromised.Learn More
Sign In

node-reqwest

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-reqwest

Node.js bindings for reqwest - Rust HTTP client library

Source
npmnpm
Version
0.0.18
Version published
Weekly downloads
632
1655.56%
Maintainers
1
Weekly downloads
 
Created
Source

node-reqwest

Node.js bindings for reqwest — a Rust HTTP client library. Provides system proxy, trusted system CA certificates, and HTTP/2 out of the box, with no additional configuration. Compatible with Electron.

Why node-reqwest?

Featurenode-reqwestNode.js / undici
DNS resolverRecursive (hickory-dns)Non-recursive (c-ares) — crashes Electron on Windows for nonexistent domains
System CA certificatesBuilt-inRequires win-ca, mac-ca
System proxyBuilt-inNot available (complex Electron workaround)
SOCKS proxyBuilt-inNot available
HTTP/2Full support via hyperLimited
TLSrustlsOpenSSL

Usage

This library provides an Agent that implements the undici.Dispatcher interface. Use it as a global dispatcher for fetch or with any undici-compatible API.

import { Agent } from "node-reqwest";
import { setGlobalDispatcher } from "undici";

const agent = new Agent({
  allowH2: true,
  proxy: "system",
});

setGlobalDispatcher(agent);

// All fetch calls now use reqwest under the hood
const response = await fetch("https://example.com");

Installation safety

This package downloads a precompiled binary during npm install. The postinstall script uses node-addon-slsa to cryptographically verify that the binary was built in the same GitHub Actions workflow run as this npm package, using sigstore provenance attestations and the GitHub Attestations API.

Installation aborts with a SECURITY error if any check fails.

Requirements

  • Node.js ^20.19.0 || >=22.12.0

License

Apache-2.0 OR MIT

Keywords

client

FAQs

Package last updated on 07 Mar 2026

Did you know?

Socket

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