Skip to content

move your data using node.js std lib empowered by composed async generator functions and iterators

License

Notifications You must be signed in to change notification settings

jtara1/pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pipeline

move your data using node.js std lib

empowered by composed async generator functions and iterators

Install

npm install https://github.com/jtara1/pipeline

Usage

import { pipeline } from 'pipeline';
import { map, arraySink } from 'pipeline/steps/common.steps.js';

const result = await pipeline(
  [1, 2, 3, 4],
  map(value => value ** 2),
  arraySink(),
);

console.log(result);

TODO

  • common steps
  • exit code 1
  • re-read all steps
  • refactor step functions to all be a function to explicitly call
  • refactor modules to group sinks
  • document pipeline, steps, and sinks
  • docstrings for common.step.mjs functions
  • testing for the functions ^

About

move your data using node.js std lib empowered by composed async generator functions and iterators

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published