Chain the execution of node-tasks.
Given a series of task configurations and some input, pass input into the first task, then run each subsequent task using the output of the previous task as the input for the next. Returns the return value of the last task in the pipeline.
pipelineAn array of objects with a
optionskey, where task is a valid node-task and options are the options to pass to it when it is run.
inputThe input for the first task in the pipeline.
var pipeline =task:options:use:task:options:separator: '-'task:options:header: '//header'footer: '//footer'task:options:use:;var input =src: 'test/fixtures/foo.txt''test/fixtures/bar.txt''test/fixtures/baz.txt'dest: 'tmp/output.txt';;
A convenience method to make creating pipeline configurations easier. Returns a pipeline which can be passed to
tasksAn object containing tasks to be mapped into a pipeline.
pipelineAn array of task names that correspond to keys in the
var tasks =read:task:options:use:concat:task:options:separator: '-'wrap:task:options:header: '//header'footer: '//footer'write:task:options:use:;var pipeline = 'read' 'concat' 'wrap' 'write';pipeliner;