omit-keys-stream
v0.0.1
Published
Omit object keys from an `objectMode` stream using http://lodash.com/docs#omit
Downloads
1
Readme
omit-keys-stream
Omit object keys from an objectMode
stream using http://lodash.com/docs#omit
Installation
npm install omit-keys-stream --save
Usage
var OmitKeysStream = require('./')
, stream = new OmitKeysStream([ 'a', 'b' ])
stream.write({ a: 1, b: 2, c: 3 })
stream.on('data', function (data) {
console.log(data) // -> { c: 3 }
})
stream.end()
var stream = OmitKeysStream(keys)
Options must include:
keys
- an array of keys to omit from the object