A minimal debounce utility function that delays invoking a callback until after a specified wait period. Version 1.0.0 (latest) is a single-function package with no dependencies. Lightweight alternative to lodash.debounce, targeting npm users who need a quick, zero-dependency debounce. No TypeScript types included. Last updated in 2023, with no recent activity or releases.
npm install simple-utility-debounceVerified import paths — ran on the pinned version, not inferred.
Imports debounce, creates a debounced function, calls it multiple times, and cancels it.
Add a declaration file (e.g., debounce.d.ts) with 'declare module "simple-utility-debounce" { ... }' or use @ts-ignore.Wrap in a Promise if needed: const debouncedFn = debounce(() => new Promise(resolve => ...), wait);
Use: import debounce from 'simple-utility-debounce' (ESM) or const debounce = require('simple-utility-debounce').default (CJS).Add 'esModuleInterop: true' in tsconfig.json or use namespace import: import * as debounce from 'simple-utility-debounce'.
No dependency data recorded yet.