You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

timer-track

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timer-track

JavaScript module which generates events from a schedule

0.1.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

timer-track

JavaScript module which generates events from a schedule

Why use this module?

Sometimes, you want a series of events to be generated according to a simple schedule, and then played. This is handy, for example, when building a simple animation.

How do I use this module?

var timer = new TimerTrack();
timer.add(100, "Hello");
timer.add(200, "world! ");
timer.add(50, {name: "key", value: ["Any", "old", "data"]});
timer.on('timer', function(e) {
  console.log("Timer", e.value);
});
timer.on('end', function(e) {
  console.log("Done");
});
timer.play();

License

Copyright (c) 2014. Stuart Watt.

Licensed under the MIT License.

Keywords

timer

FAQs

Package last updated on 21 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts