Fabulously kill processes. Cross-platform.
npm install @tunnel/fkill> Fabulously kill processes. Cross-platform.
Works on macOS (10.13 or later), Linux, Windows.
``sh`
npm install fkill
`js
import fkill from 'fkill';
await fkill(1337);
console.log('Killed process');
fkill('Safari');
fkill(':8080');
fkill([1337, 'Safari', ':8080']);
`
Returns a promise that resolves when the processes are killed.
#### input
Type: number | string | Array
One or more process IDs/names/ports to kill.
To kill a port, prefix it with a colon. For example: :8080.
#### options
Type: object
##### force
Type: boolean\false
Default:
Force kill the processes.
##### forceAfterTimeout
Type: number\undefined
Default:
Force kill processes that did not exit within the given number of milliseconds.
##### tree
Type: boolean\true
Default:
Kill all child processes along with the parent process. (Windows only)
##### ignoreCase
Type: boolean\false
Default:
Ignore capitalization when killing a process.
Note that the case is always ignored on Windows.
##### silent
Type: boolean\false
Default:
Suppress all error messages. For example: Process doesn't exist`.
- fkill-cli - CLI for this module
- alfred-fkill - Alfred workflow for this module