1.0.0 • Published 8 years ago
transfrom-stream-such v1.0.0
WAT
Using node 5 streams? Tired of calling:
new stream.Transform({
objectMode: true,
transform: function (chunk, encoding, callback) {
callback(null, {chunk});
}
})
Here's a tip for you
above is equivalent to:
let through = require('transfrom-stream-such');
through(function (chunk, encoding, callback) {
callback(null, {chunk});
})
1.0.0
8 years ago