pull-task
A task system for pull-streams
Installation
$ npm install --save pull-task
Usage
task(name, [deps], [stream])
Create a task that runs the stream after running any tasks it depends on.
name
(String
): Name of the task.deps
(Array
): Tasks to execute before.stream
(Array
): A pull-stream chain associated with the task.
// Normal task: // Task with dependencies: // A wrapping task:
task.run(name, [done])
Run a task and any dependency tasks it has.
name
(String
): A name (or array of names) of the task to run.done
(Function
): A completion callback. Receives(err, task || tasks)
License
MIT © Jamen Marz