apeman task to kill process after task done.
npm install apeman-task-killapeman-task-kill
==========
[![Build Status][bd_travis_shield_url]][bd_travis_url]
[![Code Climate][bd_codeclimate_shield_url]][bd_codeclimate_url]
[![Code Coverage][bd_codeclimate_coverage_shield_url]][bd_codeclimate_url]
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[![JS Standard][bd_standard_shield_url]][bd_standard_url]
[bd_repo_url]: https://github.com/apeman-task-labo/apeman-task-kill
[bd_travis_url]: http://travis-ci.org/apeman-task-labo/apeman-task-kill
[bd_travis_shield_url]: http://img.shields.io/travis/apeman-task-labo/apeman-task-kill.svg?style=flat
[bd_license_url]: https://github.com/apeman-task-labo/apeman-task-kill/blob/master/LICENSE
[bd_codeclimate_url]: http://codeclimate.com/github/apeman-task-labo/apeman-task-kill
[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/apeman-task-labo/apeman-task-kill.svg?style=flat
[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/apeman-task-labo/apeman-task-kill.svg?style=flat
[bd_gemnasium_url]: https://gemnasium.com/apeman-task-labo/apeman-task-kill
[bd_gemnasium_shield_url]: https://gemnasium.com/apeman-task-labo/apeman-task-kill.svg
[bd_npm_url]: http://www.npmjs.org/package/apeman-task-kill
[bd_npm_shield_url]: http://img.shields.io/npm/v/apeman-task-kill.svg?style=flat
[bd_standard_url]: http://standardjs.com/
[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
apeman task to kill process after task done.
``bash`
$ npm install apeman-task-kill --save-dev
1. Define a task within Apemanfile.js
2. Call the task via apeman task command.
Apemanfile.js
`javascript
/* This is an example Apemanfile to use apeman-task-kill /
'use strict'
module.exports = {
$pkg: { / ... / },
$tasks: {
'process:kill': require('apeman-task-kill')({
// Options
}),
// Kill process after something
'do-something-and-kill': [
'some-process-keeping-task',
'process:kill'
]
}
}
`
Then,
`bash``
$ apeman task process:kill
#### 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.
Links
------