1.0.0 • Published 6 years ago

node-ticker v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

node-ticker

It can create a continuous or random tick to perform some light-weighted operations To test this library first install dependency ##Steps: 1.sudo npm install --no-bin-links 2.mocha test

ticker-constructor ticker("name",starttime,endtime,mode,interval/burst)

it will create a ticker object

ticker Object Methods:

name() returns the object name

example:

tickerObj=new ticker('tickerOne');
console.log(tickerObj.name())//tickerOne
```js
## start(cb) takes a callback  return null
## scheduler(processcb,completecb) takes two argument first callback that is of function to call at each interval and secondOne when all ticks will over then for final work