numper

0.0.2 • Public • Published

numper

Add up counts and emit the buckets periodically. Super simple.

var Numper = require('./index.js')
  , numper = new Numper({interval: 1000}); // Emit counts once per second


// Need something to count, so suppose we have a kanga dazzling with photons:
var bk = new BouncyKanga();


// Now count:
bk.on('photon', function(value){numper.increment('photons', value);});
numper.on('aggregate', console.log); // Print counts once per second.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i numper

Weekly Downloads

2

Version

0.0.2

License

ISC

Last publish

Collaborators

  • bitdivine