Fabulously kill processes. Cross-platform.
Works on macOS, Linux, Windows.
$ npm install --save fkill
constfkill=require('fkill');fkill(1337).then(()=>{console.log('Killed process');});fkill('Safari');fkill([1337,'Safari']);Returns a promise.
Type: numberstringArray<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