Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
#Exec Queue Safely run exec in a loop.
I ran into an Error: spawn EMFILE
when trying to call exec too many times
(ie. in a loop). This module safely packages exec so that you may use it in a
loop without creating too many child processes.
##Usage
npm install exec-queue
var exec = require('exec-queue');
for (var i = 0; i < 100; ++i) {
exec('ls', function (err, stdout, stderr) {
console.log(stdout);
});
}
Try the above example with require('child_process').exec
instead. ;)
The current limit is 10 child processes running simultaneously. I did not test the limit (maybe it can be queried by OS). If you need more, please file an issue, as I could add to the API to be able to specify the limit.
FAQs
Safely run exec in a loop.
The npm package exec-queue receives a total of 79 weekly downloads. As such, exec-queue popularity was classified as not popular.
We found that exec-queue 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.