A lightweight async data queue for Node.js that supports appending, prepending, and error handling. Version 0.0.3 is the latest stable release. It provides a simple callback-based API for buffering data and processing it asynchronously, similar to a stream but without the complexity. Key differentiators: minimal dependencies, no external libraries, and built-in error propagation that prevents further data addition after an error.
npm install data-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: creating a queue, adding data, retrieving data with callbacks, and error handling.
Remove the new keyword: const queue = Queue()
Check for errors before appending or use a wrapper that tests queue state.
Always handle the error argument before data.
Remove new: const queue = Queue()
Ensure queue is created with Queue()
Make sure to call queue.append() or queue.error() to unblock get()
No dependency data recorded yet.