node-ticker

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i node-ticker

Weekly Downloads

2

Version

1.0.0

License

ISC

Last publish

Collaborators

  • pfarkya