A pull-stream based duplex stream with a built-in queue, version 0.1.4, maintained for the pull-stream ecosystem. It allows transforming or validating data as it passes through, with options like sendMany to split arrays into multiple items. Designed to avoid null reads by returning a duplex stream. Lightweight, no dependencies, and integrates seamlessly with other pull-stream utilities.
npm install pull-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates a queue stream that filters out non-numeric values using a validation function.
Ensure that the callback is called with valid data or null to skip, not undefined.
Set sendMany: false (default) when you want to pass arrays as single items.
Monitor for updates or consider alternatives like pull-through or pull-transform.
Use default import: import queue from 'pull-queue' (ESM) or const queue = require('pull-queue') (CJS).Ensure the transform function signature is exactly (end, data, cb), not (data, cb) or (end, data).
Use cb(error) to pass errors back to the pull-stream pipeline; do not throw.
No dependency data recorded yet.