9.0.0 • Published 1 year ago

fkill v9.0.0

Weekly downloads
173,446
License
MIT
Repository
github
Last release
1 year ago

Fabulously kill processes. Cross-platform.

Works on macOS (10.13 or later), Linux, Windows.

Install

npm install fkill

Usage

import fkill from 'fkill';

await fkill(1337);
console.log('Killed process');

fkill('Safari');
fkill(':8080');

fkill([1337, 'Safari', ':8080']);

API

fkill(input, options?)

Returns a promise that resolves when the processes are killed.

input

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.

options

Type: object

force

Type: boolean\ Default: false

Force kill the processes.

forceAfterTimeout

Type: number\ Default: undefined

Force kill processes that did not exit within the given number of milliseconds.

tree

Type: boolean\ Default: true

Kill all child processes along with the parent process. (Windows only)

ignoreCase

Type: boolean\ Default: false

Ignore capitalization when killing a process.

Note that the case is always ignored on Windows.

silent

Type: boolean\ Default: false

Suppress all error messages. For example: Process doesn't exist.

Related

9.0.0

1 year ago

8.1.1

1 year ago

8.1.0

2 years ago

8.0.1

3 years ago

8.0.0

3 years ago

7.2.1

3 years ago

7.2.0

3 years ago

7.1.1

4 years ago

7.1.0

4 years ago

7.0.1

5 years ago

7.0.0

5 years ago

6.2.0

5 years ago

6.1.0

6 years ago

6.0.0

6 years ago

5.3.0

7 years ago

5.2.0

7 years ago

5.1.0

7 years ago

5.0.0

7 years ago

4.1.0

8 years ago

4.0.0

9 years ago

3.1.0

9 years ago

3.0.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.0

9 years ago