Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
easy-stream
Advanced tools
make test
/*
Thin wrapper that makes setting up streams a bit easier.
Defaults to objectMode on read and write streams. You can
override options by including a config.options object.
*/
var Easy = require("easy-stream");
//creates a read stream
var easyReadStream = Easy({
_read: function() {
var someData = {
easy: "stream"
};
this.push(someData);
},
options: {} //using default options.
});
//now create a corresponding writable stream with easy-stream.
var easyWriteStream = Easy({
_write: function(obj, encoding, next) {
//obj is the json object {easy: "stream"}
console.log(obj);
next();
}
});
easyReadStream.pipe(easyWriteStream);
//creating a duplex stream is easy.
var stream = Easy({
_write: function() {},
_read: function() {}
});
//so is creating a transform stream
var stream = Easy({
_transform: function() {}
_flush: function() {}
});
//you can subclass any function too
function SomeFunction() {}
SomeFunction.prototype.someMethod = function() {};
var easyDuplexStream = Easy({
_read: function() {},
_write: function() {},
createUsing: SomeFunction
})
FAQs
```bash make test ```
The npm package easy-stream receives a total of 1 weekly downloads. As such, easy-stream popularity was classified as not popular.
We found that easy-stream 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.