Fabulously kill processes. Cross-platform.
Works on macOS, Linux, Windows.
$ npm install --save fkill
const fkill = require('fkill');
fkill(1337).then(() => {
console.log('Killed process');
});
fkill('Safari');
fkill([1337, 'Safari']);
Returns a promise.
Type: number
string
Array<number|string>
One or more process IDs/names to kill.
Type: boolean
Default: false
Force kill the process.
- fkill-cli - CLI for this module
MIT © Sindre Sorhus