Composable pieces of a Redis pipeline, enabling modular construction of pipeline commands with grouped result processing and chaining of command outputs. Current stable version: 0.0.6. Release cadence: low activity, likely experimental. Key differentiator vs raw ioredis pipelines: allows composing reusable pipeline segments that can process multiple results together and feed results between segments. ESM-only, TypeScript types included, requires ioredis 5.x as peer dependency.
npm install pipeline-segmentNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a pipeline segment that sends GET 'foo' and extracts the result.
Match the order of segment.addToPipeline calls with the order of results from pipeline.exec().
Pin to exact version and test upgrades.
Install ioredis@5 or later.
Run npm install pipeline-segment
Use import { createSegment } from 'pipeline-segment'Run npm install ioredis@5