Socket
Book a DemoInstallSign in
Socket

delay-pacer

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

delay-pacer

High precision delay based pacer

latest
Source
npmnpm
Version
2.1.1
Version published
Maintainers
1
Created
Source

delay-pacer

Auto drift adjusting pacer that supports multiple inputs

npm install delay-pacer
const DelayPacer = require('delay-pacer')

const pacer = new DelayPacer({
  oninput(inp, message) {
    // message triggered
  }
})

const inp = pacer.addInput()

// queue a message in 1000 microseconds
inp.queue(1000, {
  hello: 'world'
})

// queue another message in 1000 microseconds after first one
inp.queue(1000, {
  hello: 'world'
})

FAQs

Package last updated on 13 Dec 2025

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