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

Readme

Keywords

none

Package Sidebar

Install

npm i transfrom-stream-such

Weekly Downloads

2

Version

1.0.0

License

ISC

Last publish

Collaborators

  • syzer