1.0.0 • Published 10 years ago

lib-init v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

init lib

job init server

install

npm install --save lib-init

usage

queue a series of tasks

Spawn a series of tasks executed sequentially. The stdout/stderr of each child is wired together in job.stdout and job.stderr respectively.

var Init = require('lib-init')();
var init = Init.New();

var job  = init.queue('myTask', {
  tasks: [task0, task1, task2]
})

job.stdout.pipe(process.stdout);

abort a job

var Init = require('lib-init')();
var init = Init.New();

init.queue('myTask', {
  tasks: [task0, task1, task2]
});

init.abortJob('myTask');
1.0.0

10 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.0

11 years ago