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

@saber2pr/interval

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saber2pr/interval

> Interval use requestAnimationFrame.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

@saber2pr/interval

Interval use requestAnimationFrame.

npm install @saber2pr/interval

API

const interval = new Interval() // delta is 16

const interval = new Interval(1000) // delta is 1000

Interval.push

const update1 = time => console.log('update1', time)
const update2 = time => console.log('update2', time)

interval.push(update1, update2)

interval.remove

const update1 = time => console.log('update1', time)

interval.remove(update1)

interval.setDelta

interval.setDelta(500) // delta is changed to 500

interval.execute

interval.execute() // interval is starting...

interval.cancel

interval.cancel() // interval is canceled.

Author

saber2pr

Keywords

interval

FAQs

Package last updated on 07 May 2019

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