
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
No more hell. Callbacks made easy, with error handlers and more.
##Deprecated: This project has been discontinued.
This was an experiment to understand how to run callbacks one by one, without nested functions.
You can continue using the next.io package. But, I recommend you use async for production projects.
Install mocha globally:
npm install -g mocha
Unit test command:
npm test
var next = require ('next.io');
var to = next();
to.do('data input', //required, ever you can use null
function (data, next) {
//some async
next(output);
},
function (data, next) {
//some async
next(output);
},
function (data) {
//whatever you want
}
);
var next = require ('next.io');
var to = next({ // handlers
error: function (data) {
//do something
}
});
to.do('data input', //required, ever you can use null
function (data, next) {
//some async without possible errors
next(output);
},
function (data, next, error) {
//some async with possible errors
if (err) {
error('error', err) // 'error' is a handler name
} else {next(output);}
},
function (data) {
//whatever you want
}
);
var fs = require ('fs');
var next = require ('next.io');
var to = next({
error: function(data) {
console.log('ERROR: ' + data);
}
});
function readFile (path, next, error) {
fs.readFile(path, 'utf-8', function (err, data) {
if (err) {
error('error', err)
} else {
next(data);
}
});
};
function consoleFile (data) {
console.log(data);
};
to.do('./example.txt', readFile, consoleFile);
FAQs
No more hell. Callbacks made easy, with error handlers and more.
We found that next.io 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.