apeman-task-kill
apeman task to kill process after task done.
Installation
$ npm install apeman-task-kill --save-dev
Usage
- Define a task within Apemanfile.js
- Call the task via apeman task command.
Apemanfile.js
/** This is an example Apemanfile to use apeman-task-kill */ 'use strict' moduleexports = $pkg: /* ... */ $tasks: 'process:kill': // Options // Kill process after something 'do-something-and-kill': 'some-process-keeping-task' 'process:kill'
Then,
$ apeman task process:kill
Signature
apemanTaskKill(options) -> function
apeman task to kill process after task done.
Args
Name | Type | Default | Description |
---|---|---|---|
options | object | Optional settings. | |
options.delay | number | 100 | Delay to kill. |
License
This software is released under the MIT License.