
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
simple, quick little serial flow control package
npm install aflow
or git clone git://github.com/andrasq/node-aflow
keep calling function until it returns a truthy value, then return that value via callback.
var aflow = require('aflow');
var count = 0;
aflow.repeatUntil(
function(cb) {
count += 1;
var stopNow = count >= 10;
cb(null, stopNow);
},
function(err) {
console.log("count =", count);
}
)
// => count = 10
keep calling function as long as loopCondition holds.
var aflow = require('aflow');
var count = 0;
aflow.repeatWhile(
function() {
return count < 10;
},
function(cb) {
count += 1;
cb();
},
function(err) {
console.log("count =", count);
}
)
// => count = 10
call each function in turn. Each function is passed two arguments, a callback and the returned value from the previous function. An error will interrupt the flow. Callback will be called with the returned value from the last function, or the error.
var aflow = require('aflow');
aflow.iterate([
function(cb, last) { console.log("first, last", last); cb(null, 1); },
function(cb, last) { console.log("second, last", last); cb(null, 2); },
function(cb, last) { console.log("third, last", last); cb(null, 3); }
],
function(err, last) {
console.log("done, last", last);
}
);
// => first, last undefined
// => second, last 1
// => third, last 2
// => done, last 3
FAQs
async flow control for calls with callbacks
The npm package aflow receives a total of 34 weekly downloads. As such, aflow popularity was classified as not popular.
We found that aflow 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
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.