Registry / development / queoid

queoid

JSON →
library1.1.10jsnpmunverified

A minimalistic low-level queue library for Node.js (v1.1.10). It allows pushing functions with arguments into a queue and executing them sequentially, collecting results in an array. Release cadence is low; no updates since 2019. Differentiator: extremely simple API with no dependencies, suitable for basic queueing needs without overhead.

npm install queoid
INSTALL
IMPORT
SIG · QUEOID
Q
queoid
developmentjavascriptv1.1.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Queoid
const Queoid = require('queoid');
import Queoid from 'queoid';
Queoid is CommonJS-only; ESM import will fail unless using a bundler with CJS interop.
Queoid constructor
new Queoid()
new queoid.Queoid()
The module exports the constructor directly, not as a property.
Queue methods
q.push(fn, args); q.start(callback); q.done();
q.push(fn); q.start();
push expects arguments array as second param; start expects a callback. Missing params may cause runtime errors.

Creates a queue, pushes two functions with different argument patterns, starts execution, and pushes a third function after start.

const Queoid = require('queoid'); const q = new Queoid(); q.push((cb) => { setTimeout(() => cb(42), 100); }); q.push((arg1, arg2, cb) => { setTimeout(() => cb(`Foo ${arg1} ${arg2}`), 50); }, ['bar', 42]); q.start((results) => { console.log(results); // => [ { '0': 42 }, { '0': 'Foo bar 42' } ] }); q.push((cb) => { cb('Baz'); });
Debug
Known issues
deprecatedPackage has not been updated since 2019 and may have compatibility issues with modern Node.js versions.
fix
Consider migrating to modern queue libraries like p-queue or bull.
affects: >=12.0.0
gotchaResults are collected in an object with numeric keys (e.g., { '0': 42 }) instead of an array index.
fix
Access results via result[0] or transform with Object.values(results).
affects: *
gotchaIf you use push after start, it still works but the queue may have already completed; results from late pushes are appended.
fix
Ensure all pushes happen before start if deterministic order is required.
affects: *
Errors
Common errors & fixes
TypeError: q.start is not a function
Queoid constructor not called with new; q is undefined or wrong import.
fix
Ensure const q = new Queoid();
Cannot find module 'queoid'
Package not installed or import path incorrect.
fix
Run npm install queoid and use require('queoid') (not require('Queoid')).
Upgrade
Version history
1.1.10latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
46 hits · last 30 days
node
40
Resources
packagequeoid
queoid — npm install queoid · libregistry