stream-histogram

0.1.0 • Public • Published

stream-histogram

A stream that computes a histogram of input values.

install

npm install stream-histogram

example

var stream = histo();
stream.write(5);
stream.write(2);
stream.write(8);
stream.write(2);
stream.on('data', function(data) {
    // data is a stream of
    // { key: input, value: count } objects
});
stream.end();

Readme

Keywords

Package Sidebar

Install

npm i stream-histogram

Weekly Downloads

2

Version

0.1.0

License

ISC

Last publish

Collaborators

  • tmcw