npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

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.

install

npm i numper

Downloadsweekly downloads

1

version

0.0.2

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability