time-events-manager
View and Manage Javascript's timeout and interval collections
Installation
$ npm install time-events-manager --save
Usage
// creating a timeout { console;} var myTimeoutId = ; // Managing timeouts via timeoutCollection object timeoutCollection;timeoutCollection; //Both returning the timeout object created timeoutCollection; //Returns an array of timeout objects that have not yet executedtimeoutCollection; //Returns an array of timeout objects that have been executedtimeoutCollection; //Returns an array of timeout objects timeoutCollection;timeoutCollection;
Basically, you should inject the library script from in place you would like the collection to work on.
Why?
JavaScript will not expose us a simple object or array to view and manage all of our current time-events
.
This library exposes the timeouts and intervals in your current page. In addition, it makes
it possible to manage those time-events
in run-time
.