A tiny, zero-dependency library for queuing and throttling asynchronous JavaScript/TypeScript functions. Current stable version is 0.11.1, released with monthly cadence. Key differentiators: no runtime dependencies, minimal API surface, supports configurable max concurrency and delay between function executions, ships TypeScript types, works in both Node.js and browser environments.
npm install qewNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates instantiation, task pushing, and promise resolution with a queue throttling 2 concurrent requests with 100ms delay.
Use named arguments or check order: new Qew(concurrency, delay).
Ensure the function always returns a promise, e.g., wrap sync code in async function or use Promise.resolve().
Always return a non-negative number from the delay function.
Use new Qew(...) after importing correctly: import { Qew } from 'qew' or const { Qew } = require('qew').Run 'npm install qew' and ensure your tsconfig.json includes moduleResolution: node or node16.
No dependency data recorded yet.