Front end of the Slack clone application.
Nicholas Maidanos 23f6576076 Channel stuff added 6 年之前
..
examples Channel stuff added 6 年之前
test Channel stuff added 6 年之前
.npmignore Channel stuff added 6 年之前
.travis.yml Channel stuff added 6 年之前
LICENSE Channel stuff added 6 年之前
README.md Channel stuff added 6 年之前
index.js Channel stuff added 6 年之前
package.json Channel stuff added 6 年之前

README.md

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 devnull
var numbers = require('../test/fixtures/number-readable')

numbers({ to: 2 })
  .on('data', function (d) { console.log(d.toString()) });
// => 
// 0
// 1
// 2
// piping into devnull
var devnull = require('dev-null');
var numbers = 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