Skip to content

domharrington/omit-keys-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published