Bakhtina Sofya b84cb877be 1st comm | 2 semanas atrás | |
---|---|---|
.. | ||
index.d.ts | 2 semanas atrás | |
index.js | 2 semanas atrás | |
license | 2 semanas atrás | |
package.json | 2 semanas atrás | |
readme.md | 2 semanas atrás |
Fabulously kill processes. Cross-platform.
Works on macOS, Linux, Windows.
$ npm install fkill
const fkill = require('fkill');
(async () => {
await fkill(1337);
console.log('Killed process');
})();
fkill('Safari');
fkill(':8080');
fkill([1337, 'Safari', ':8080']);
Returns a promise that resolves when the process is killed.
Type: number | string | Array<number | string>
One or more process IDs/names/ports to kill.
To kill a port, prefix it with a colon. For example: :8080
.
Type: object
Type: boolean
Default: false
Force kill the process.
Type: boolean
Default: true
Kill all child processes along with the parent process. (Windows only)
Type: boolean
Default: false
Ignore capitalization when killing a process.
Note that the case is always ignored on Windows.
Type: boolean
Default: false
Suppress all error messages. For example: Process doesn't exist
.