
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
set-interval-manager
Advanced tools
A utility class for managing intervals created by setInterval.
You can install the package using npm:
npm install set-interval-manager
// ES6 import
import SetInterval from 'set-interval-manager';
// (or) CommonJS require
const SetInterval = require('set-interval-manager');
const mockFn = () => 'set-interval-manager';
// --- (start + clear) ---
SetInterval.start(mockFn, 1000, 'basic-example');
SetInterval.clear('basic-example');
// --- (start + clearAll) ---
SetInterval.start(mockFn, 1000, 'interval-one');
SetInterval.start(mockFn, 1500, 'interval-two');
SetInterval.start(mockFn, 2000, 'interval-three');
SetInterval.clearAll();
// --- (start + listAll) ---
SetInterval.start(mockFn, 1000, 'interval-one');
SetInterval.start(mockFn, 1500, 'interval-two');
SetInterval.listAll(); // => ['interval-one', 'interval-two']
SetInterval.clear('interval-one');
SetInterval.listAll(); // => ['interval-two']
SetIntervalThe main class exported by the package.
start(fn: IntervalFn, interval: number, key: string): voidStarts a new interval that calls the specified function at the specified interval.
fn (required): The function to call.interval (required): The interval (in milliseconds) at which to call the function.key (required): A unique string identifier for the interval.clear(key: string): voidStops the interval with the specified key.
key (required): The string identifier for the interval to stop.clearAll(): voidStops all intervals managed by this utility.
listAll(): string[]Gets an array of all keys currently being used to manage intervals.
This package is released under the MIT License.
FAQs
A utility class for managing intervals created by setInterval
We found that set-interval-manager 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.