New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

repeatr

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

repeatr

A micro JavaScript library for running repetitive time-based tasks

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Repeatr

A micro JavaScript library for repetitive tasks

Example

"Talk is cheap, show me the code" — Linus Torvalds

var job1 = Repeatr()
                .do(function() { /*...*/ })
                .every(1000)
                .start();

var job2 = Repeatr()
                .do(function() { /*...*/ })
                .do(function() { /*...*/ })
                .for(5) // times
                .every(2000) // interval
                .delay(1000) // initial delay
                .start();

job1.stop(); // stops the repetitive calls
job1.reset(); // resets the counter as if it isn't invoked

// Cheers!

Keywords

Repeat

FAQs

Package last updated on 22 Feb 2016

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