Registry / devops / queueobj

queueobj

JSON →
library15.1.8jsnpmunverified

Queue JavaScript objects dynamically and process them synchronously with built-in appenders. Version 15.1.8 (stable, actively maintained). Provides file, top/bottom, status, name, version, and JSON-based appenders for processing queued objects. Differentiator: synchronous processing with multiple appender patterns, including JSON-driven object processing. Suited for Node.js environments requiring ordered, synchronous object handling.

npm install queueobj
INSTALL
IMPORT
SIG · QUEUEOBJ
Q
queueobj
devopsjavascriptv15.1.8
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.

QueueObj
const QueueObj = require('queueobj');
import QueueObj from 'queueobj';
CJS only; no ESM export. Use require() or dynamic import() in ESM projects.
new QueueObj()
const queue = new QueueObj();
const queue = QueueObj();
QueueObj must be instantiated with 'new'.
queue.queue()
queue.queue('appender', object);
queue.push('appender', object);
Use .queue() to add objects, not .push().

Creates a queue, adds two objects with 'all' appender, processes them synchronously.

const QueueObj = require('queueobj'); const queue = new QueueObj(); class MyClass { constructor(props) { this.id = props.id; } process(callback) { console.log(`Processing ${this.id}`); callback({ success: { msg: 'done' } }); } } const obj1 = new MyClass({ id: 1 }); const obj2 = new MyClass({ id: 2 }); queue.queue('all', obj1); queue.queue('all', obj2); queue.process('all', function(result) { console.log('All processed:', result); });
Debug
Known issues
breakingSynchronous processing may block event loop for long tasks
fix
Use asynchronous patterns or break tasks into smaller chunks.
affects: *
gotchaObjects must have a 'process' method
fix
Ensure every queued object implements process(callback).
affects: *
deprecatedNo ESM support; CJS only
fix
Use dynamic import() or transpile with bundler.
affects: >=15.0.0
Errors
Common errors & fixes
TypeError: queue.queue is not a function
Forgetting to instantiate QueueObj with 'new'
fix
Use: const queue = new QueueObj();
Error: No appender found for 'all'
Passed unsupported appender name
fix
Use one of: files, all, top_one, bottom_one, func_all, status, name, version, etc.
TypeError: Object has no 'process' method
Queued object missing process(callback) function
fix
Add process method to your class or object.
Upgrade
Version history
15.1.8latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
queueobj — npm install queueobj · libregistry