
Product
Introducing Supply Chain Attack Campaigns Tracking in the Socket Dashboard
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.
Convert node.js Streams into Promises
$ npm install sprom
sprom.end(request(url).pipe(fs.createWriteStream('file.json')))
.then(function () {
console.log('Successfully wrote file');
}, function (err) {
console.error('Failed to write file');
console.error(err.stack || err.message || err);
});
sprom(request(url))
.then(function (body) {
console.dir(JSON.parse(body.toString()));
})
.then(null, function (err) {
console.error('Failed to read JSON');
console.error(err.stack || err.message || err);
});
Get a promise that is resolved when the stream has ended. This won't make any attempt to look at the data of the stream.
Buffers the contents of the stream using concat-stream and returns a promise for the concatenated results.
Buffers the contents of the stream into an array and returns a promise for the array.
MIT
FAQs
Convert node.js Streams into Promises
The npm package sprom receives a total of 2 weekly downloads. As such, sprom popularity was classified as not popular.
We found that sprom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Security News
Node.js 25.4.0 makes require(esm) stable, formalizing CommonJS and ESM compatibility across supported Node versions.