make test
var Easy = require("easy-stream");
var easyReadStream = Easy({
_read: function() {
var someData = {
easy: "stream"
};
this.push(someData);
},
options: {}
});
var easyWriteStream = Easy({
_write: function(obj, encoding, next) {
console.log(obj);
next();
}
});
easyReadStream.pipe(easyWriteStream);
var stream = Easy({
_write: function() {},
_read: function() {}
});
var stream = Easy({
_transform: function() {}
_flush: function() {}
});
function SomeFunction() {}
SomeFunction.prototype.someMethod = function() {};
var easyDuplexStream = Easy({
_read: function() {},
_write: function() {},
createUsing: SomeFunction
})