Debounce function that returns an array of all unique events that occurred within the debounce window, rather than just the last event like lodash.debounce. Version 0.4.0 is the current stable release; the package is updated irregularly (last release 0.4.0 in 2019). Key differentiator: it batches events into an array, making it ideal for file watchers or event streams where you need to process all pending events, not just the most recent. Simple API with support for leading, trailing, and maxWait options.
npm install debounce-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates debouncing file system watch events, receiving an array of all events that occurred within the wait period.
Access events as arrays: for (const args of result) { const [arg1, arg2] = args; }Use import or update require syntax.
Use named import: import { debounce } from 'debounce-queue'Run 'npm install debounce-queue'
Use named import: import { debounce } from 'debounce-queue'Ensure you invoke the debounced function with the same arguments as your event listener.
No dependency data recorded yet.