0.0.6 • Published 3 years ago

active-interval v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Active Interval

A small tool to make interval which stop when the web browser's document is inactive. https://www.npmjs.com/package/active-interval

Installation

$ npm install active-interval --save

Usage

import { ActiveInterval } from 'active-interval';
ai: ActiveInterval = new ActiveInterval();
this.ai.setInterval(() => {
    console.log(+new Date())
}, 2500, true);
0.0.5

3 years ago

0.0.6

3 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago

1.0.0

4 years ago