
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
nodeify-fetch
Advanced tools
The nodeify-fetch package provides a Node.js Readable stream interface for fetch.
In the browser, the built-in fetch is used.
In a Node.js environment, node-fetch it's used.
Since version 3.0, this packages is ESM only. Check version 2.x if you are looking for a CommonJS package.
The only difference to the fetch standard is the .body property.
nodeify-fetch patches the .body to a readable stream:
import { promisify } from 'util'
import fetch from 'nodeify-fetch'
import { finished } from 'readable-stream'
async function main () {
const res = await fetch('http://worldtimeapi.org/api/timezone/etc/UTC')
if (!res.ok) {
console.log(`error ${res.statusText}(${res.status})`)
}
res.body.on('data', chunk => console.log(chunk.toString()))
await promisify(finished)(res.body)
}
main()
FAQs
Node streams for fetch
The npm package nodeify-fetch receives a total of 23,312 weekly downloads. As such, nodeify-fetch popularity was classified as popular.
We found that nodeify-fetch demonstrated a not healthy version release cadence and project activity because the last version was released 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
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.