@jil/pipeline
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@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

Documentation

Package Sidebar

Install

npm i @jil/pipeline

Weekly Downloads

8

Version

0.2.0

License

MIT

Unpacked Size

101 kB

Total Files

75

Last publish

Collaborators

  • towyuan