File-based FIFO queue for Node.js, version 1.4.1. It stores JSON objects in files, allowing independent read/write operations without increasing memory usage. Supports multiple readers and writers, callback and promise modes, transactional commits via a done callback, queue recovery on process restart, and configurable persistence. Compared to in-memory queues like Bull or Bee-Queue, fileq offers simplicity and zero external dependencies (no Redis), but is limited to file-based storage and single-machine use.
npm install fileqNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a file-based FIFO queue, pushes JSON items every second, and peeks them in promise mode and transactional callback mode.
Ensure done() is called promptly, or avoid commit mode if parallel reads are needed.
Explicitly pass a timeout value (e.g., 0 for infinite) or use the correct argument order.
Use one queue per process or implement external locking; fileq does not handle inter-process synchronization.
Use queue.peek(time, callback, false) instead of queue.poll.
Ensure the parent directory exists and is writable, or use an absolute path with appropriate permissions.
Install with 'npm install fileq' and require correctly: const FileQueue = require('fileq');Check that items have been pushed before peeking, or increase the timeout, or handle the error gracefully.
No dependency data recorded yet.