Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
node-superfetch
Advanced tools
node-superfetch is a tiny little wrapper for
node-fetch that makes it look like
you are using superagent. It arose
after I decided I disliked the node-fetch API and loved the superagent API, but
node-fetch is smaller than superagent and snekfetch is buggy
(and this probably is too).
const request = require('node-superfetch');
try {
const { body } = await request.get('https://registry.npmjs.com/node-fetch');
console.log(body);
} catch (err) {
console.error(err);
}
Usage is basically that of superagent or snekfetch, and implements the same HTTP
methods, as well as functions like query
(sets query parameters), set
(sets
headers), send
(for adding POST data and such), and redirects
(for setting
the allowed number of redirects). end
is also supported for callbacks. It
does not implement anything related to formdata (but you can probably attach
it like you would with node-fetch).
This package is really made for my own personal use, I will accept PRs to it
but I won't implement feature x just because the public wants it or superagent
has it. I also want to keep the codebase relatively dependency-free aside from
node-fetch, so please refrain from adding useless additional modules. Thank
you.
FAQs
A wrapper for Node.js' fetch API that makes it appear like superagent.
The npm package node-superfetch receives a total of 10,782 weekly downloads. As such, node-superfetch popularity was classified as popular.
We found that node-superfetch 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.