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

@builtwithjavascript/use-precise-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

@builtwithjavascript/use-precise-interval

Hopefully a more accurate version of setInterval that runs without drifting

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

@builtwithjavascript/use-precise-interval

Hopefully a more accurate version of setInterval that runs without drifting.

npm version

code base

TypeScript

Description

Contains:

  • usePreciseInterval

How to use

install:

npm i -D @builtwithjavascript/use-precise-interval

consume:

import { usePreciseInterval } from '@builtwithjavascript/use-precise-interval'

const cancelInterval = usePreciseInterval(yourCallbackFunction, 1000)

// when you are done, make sure you cancel it:
cancelInterval()

Keywords

javascript, timer, timers, interval, scripts, large scale apps, vue, react, svelte, nuxt, next, node

FAQs

Package last updated on 03 Mar 2024

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