Need private packages and team management tools?Check out npm Teams »

transfrom-stream-such

1.0.0 • Public • Published

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

Keywords

none

Install

npm i transfrom-stream-such

DownloadsWeekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • avatar