timeouter

1.0.2 • Public • Published

Create and manage repeating tasks

Getting Started

[sudo] npm install timeouter --save

Examples

 
//Start a basic repeating log
var func = timeouter.add({
    func: function() {
        console.log("Repeating event")
    },
    timeout: 1000
})
 
//Call another method
var func = timeouter.add({
    func: yourMethod,
    timeout: 1000
})
 
//Call with a function declaration
var func = timeouter.add({
    func: function() {
        yourMethod("Hello World!");
    },
    timeout: 1000
})
 
//Stop the repeater
func.remove();
 
//Call the repeater method as a one-off
func.method();
 
//Get list of all running timers
timeouter.get();
 

Usage

 
var timeouter = require('timeouter');
 

Copyright (c) 2015 Arthur Mingard. See LICENSE for further details.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    16
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    16
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i timeouter

Weekly Downloads

16

Version

1.0.2

License

MIT

Last publish

Collaborators

  • arthurmingard