Package Exports
- @jil/pipeline
- @jil/pipeline/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jil/pipeline) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@jil/pipeline
Pipe an input through a series of routines and tasks to produce an output, or simply, run logic in a series of stages
import { Context, WaterfallPipeline } from '@jil/pipeline';
const ast = new WaterfallPipeline(new Context(), filePath)
.pipe('Parsing AST', parseAst)
.pipe('Linting rules', runLintsOnAst)
.pipe('Transforming nodes', transformNodesOnAst)
.pipe('Writing contents', writeAstToFile)
.run();Features
- Parallel and serial based processing pipelines.
- Supports 2 types of work units: tasks and routines.
- Pooling and aggregated implementations for computation heavy or complex logic.
- Contextually aware executions.
Installation
npm i @jil/pipeline