omit-keys-stream

0.0.1 • Public • Published

omit-keys-stream

Omit object keys from an objectMode stream using http://lodash.com/docs#omit

build status

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

Credits

Dom Harrington

Readme

Keywords

none

Package Sidebar

Install

npm i omit-keys-stream

Weekly Downloads

1

Version

0.0.1

License

ISC

Last publish

Collaborators

  • domharrington