Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dv29/event-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Event Counter

An event counter for JS

Installation

Using npm:

$ npm i -g npm
$ npm i lodash

Note: add --save if you are using npm < 5.0.0

Usage

const EventCounter = require('event-counter');

// instantiate an event counter object
const es = EventCounter();

// emit/signal an event, this registers an event count for that perticular second
es.emit();

// getCount returns total count of events that were registered from now till last n seconds
es.getCount(1);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published