
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.
https-client
Advanced tools
Simple REST client for `node.js` `https` module. Adds retries and timeout support to `https` module.
Simple REST client for node.js https module.
Has a single default export request.
Adds retries and timeout support to https 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 other than https module.
const request = require('https-client');
const body = {};
const headers = {};
const options = {};
const abortController = new AbortController();
const signal = abortController.signal;
const response = await request('POST', '/v1/endpoint', 'my-host.com', body, headers, options, signal);
port: The port, default 443
retry: number of retries, default 0
rejectUnauthorized: Whether we should reject unauthorized responses, default true
response: response timeout in ms, default 10000
deadline: deadline timeout in ms, default 60000
useHttp: Whether we should use http instead of https. Defaults to false.
verbose: should log warnings, default true
All options are optional.
request has an optional onChunk parameter which is a function that receives Buffers as chunks
while the request is underway. If passed in, the overall response will be empty and you can
reconstruct the response manually from the chunks. Can be used for response streaming.
FAQs
Simple REST client for `node.js` `https` module. Adds retries and timeout support to `https` module.
We found that https-client demonstrated a not healthy version release cadence and project activity because the last version was released 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.