nodetimer.js

0.0.2 • Public • Published

NodeTimer

Create a timer!

Example

const Timer = require('nodetimer.js')
const timer = new Timer(
'5 seconds', // Timer length
's', // This is how often it should tick. Options are ms for once every millisecond or s, once every second
() => { console.log("Timer is done!") }, // This is a callback to run when the timer has completed
(at) => { console.log(at) } // This is a callback to run when the time elapses
)

Need help?

Check out our docs!

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.20latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.20

Package Sidebar

Install

npm i nodetimer.js

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

2.31 kB

Total Files

3

Last publish

Collaborators

  • coolstone
  • systemsoftware