Skip to content

Latest commit

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

basic-pipeline

A basic pipeline module for node and the web

Installation

NPM

$ npm install basic-pipeline --save

Bower

$ bower install basic-pipeline --save

Usage

Add steps to a pipeline with use. Then execute those steps in order with execute.

varPipeline=require("basic-pipeline");varpipeline=newPipeline();pipeline.use(function(context,next){context.foo="bar";next();});pipeline.use(function(context,next){context.bar="baz";next();});pipeline.use(function(context,next){context.theAnswerIs="42";next();});pipeline.execute({},function(err,context){console.log(context);});//context => { foo: 'bar', bar: 'baz', theAnswerIs: '42' }

About

A basic pipeline module for node

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages