
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
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 24 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.