
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.
web-fetch-client
Advanced tools
Simple REST client for web `fetch` module. Adds retries and timeout support to `fetch` module.
Simple REST client for web fetch module.
Has a single default export request.
Adds retries and timeout support to fetch module.
Adds default JSON support to the body and response.
Query parameters parsed from body.
Status code >= 400 will cause a rejection of the call.
No dependencies.
import request from 'web-fetch-client';
const body = {};
const headers = {};
const options = {};
const response = await request('POST', '/v1/endpoint', 'https://my-host.com', body, headers, options);
import request, { Options, Headers, Response } from 'web-fetch-client';
interface ApiResponse {
foo: string;
}
const options: Options = { retry: 1 };
const response = await request<ApiResponse>('GET', '/foo', 'https://api.example.com', {}, {}, options);
console.log(response.foo, response.statusCode);
retry: number of retries, default 0
response: response timeout in ms, default 10000
deadline: deadline timeout in ms, default 60000
verbose: should log warnings, default true
All options are optional.
npm buildnpm publishFAQs
Simple REST client for web `fetch` module. Adds retries and timeout support to `fetch` module.
We found that web-fetch-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.