happenstance is a Node.js library for queuing timer events into an evented message queue. Current stable version is 12.0.5. It provides a simple, event-driven API for scheduling and handling timed events, with a focus on reliability and performance. Key differentiators include lightweight implementation, no external dependencies, and support for both one-shot and recurring timers. It is maintained by the bigeasy organization on GitHub and follows a regular release cadence.
npm install happenstanceNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue, schedules one-shot and recurring timers, and processes events.
Use ES module imports (import happenstance from 'happenstance') or downgrade to version 11.x.
Pass callback as second argument to timer() instead of listening on 'timer' event.
Do not rely on sub-millisecond precision; use process.hrtime for high-resolution timing.
Change to ES module import: import happenstance from 'happenstance' or use dynamic import.
Ensure happenstance is in package.json dependencies and installed via npm install happenstance.
No dependency data recorded yet.