
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Nodejs with slippers, confortable like wearing slippers, but INFORMAL, JUST FOR FUN.
Slippers is inspired by streamlinejs and Jscex. If you really need this feature, please try streamlinejs or Jscex
You just need end with a _ in the async call, you can got the magic.
run npm install slippers
edit test.js
var data = fs.readFile(filename, 'utf-8', _);
console.log(data);
run slippers test.js
var cb=global.cb || function(e){console.log(e)};fs.readFile(filename, 'utf-8', function(err,data ){if(err)return cb(err);
console.log(data);
});
See demo.js and demo.out.js for more information.
function foo(args, _){
return bar1, bar2;
}
// compile to =>
function foo(args, callback){
callback(null, bar1, bar2);
}
var bar1, bar2, bar3, bar4;
parallel{
bar1, bar2 = foo(args, _);
bar3, bar4 = foo(args, _);
}
console.log(bar1 + bar2 + bar3 + bar4);
// compile to =>
var bar1, bar2, bar3, bar4;
(function(cb){
function update(){
if(--count==0) cb()
}
var count=2;
foo(args, function(err, __bar1, __bar2){
if(err)return cb(err);
bar1=__bar1, bar2=__bar2;
update();
});
foo(args, function(err, __bar3, __bar4){
if(err)return cb(err);
bar3=__bar3, bar4=__bar4;
update();
});
})(function(err){
if(err)return cb(err);
console.log(bar1 + bar2 + bar3 + bar4);
});
You can use //} for manually end up the async block if you want.
No need, the compiled js keep the same line number with source.
foo.bar();} is wrong });}); is wrong , }} is wrong.FAQs
Confortable like wearing slippers.
We found that slippers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

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.