Skip to content

Latest commit

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

dev-null build status

/dev/null for node streams

Use it whenever you need to interrupt stream flow for instance if you want to log the state of a stream instead of its output.

// without devnullvarnumbers=require('../test/fixtures/number-readable')numbers({to: 2}).on('data',function(d){console.log(d.toString())});// => // 0// 1// 2
// piping into devnullvardevnull=require('dev-null');varnumbers=require('../test/fixtures/number-readable');numbers({to: 2}).pipe(devnull()).on('data',function(d){console.log(d.toString())});// => (no output)

Installation

npm install dev-null

License

MIT

About

/dev/null for node streams

Resources

Stars

44 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors