frequency-meter
0.0.2 • Public • Published Frequency Meter ![Build Status](https://secure.travis-ci.org/pgte/frequency-meter.png)
Measures the frequency of events.
Install
$ npm isntall frequency-meter
Use
Require:
var FM = require('frequency-meter');
Construct:
or construct with target emit interval (defaults to 1 second):
Feed it events:
setInterval(function() {
fm.happened();
}, 100);
And listen for frequency updates:
fm.on('frequency', function(freq) {
console.log('frequency is', freq);
});
End it:
License
MIT
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads