
Product
Introducing PHP and Composer Support in Socket
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.
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.
Get a promise that buffers the contents of the stream using concat-stream and then returns a promise for the concatenated results.
MIT
FAQs
Convert node.js Streams into Promises
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
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.