1.0.0 • Published 8 years ago

transfrom-stream-such v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

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});
})