
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
interval-queue
Advanced tools
interval-queue는 주기적으로 실행되는 작업을 관리하기 위한 유틸리티 라이브러리입니다. 이 라이브러리는 Node.js 환경에서 작동하며, 다양한 시간 단위로 작업을 예약하고 관리할 수 있습니다.
npm install interval-queue
import { createInterval, deleteInterval, clearIntervals } from 'interval-queue';
// 1초마다 실행되는 작업 생성
const interval = createInterval(() => {
console.log('1초마다 실행됩니다.');
}, 1000);
// 인터벌 삭제
deleteInterval(interval);
// 모든 인터벌 삭제
clearIntervals();
import { createIntervalSecond, createIntervalMinute, createIntervalHour } from 'interval-queue';
// 1분마다 실행되는 작업 생성
const minuteInterval = createIntervalMinute(() => {
console.log('1분마다 실행됩니다.');
}, 1);
// 1시간마다 실행되는 작업 생성
const hourInterval = createIntervalHour(() => {
console.log('1시간마다 실행됩니다.');
}, 1);
API createInterval(fn, time, ...args) 주어진 시간 간격으로 함수를 실행합니다.
createIntervalSecond(fn, time, ...args)
주어진 시간 간격(초)으로 함수를 실행합니다.
createIntervalMinute(fn, time, ...args)
주어진 시간 간격(분)으로 함수를 실행합니다.
createIntervalHour(fn, time, ...args)
주어진 시간 간격(시간)으로 함수를 실행합니다.
deleteInterval(loop)
주어진 인터벌을 삭제합니다.
clearIntervals()
모든 인터벌을 삭제합니다.
이 프로젝트는 MIT 라이선스를 따릅니다. 자세한 내용은 LICENSE를 참조하세요.
FAQs
interval queue
We found that interval-queue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.