
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
Fabulously kill processes. Cross-platform.
Works on macOS (10.13 or later), Linux, Windows.
npm install fkill
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.
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.
On Windows, process extensions are optional. For example, both fkill('notepad') and fkill('notepad.exe') work.
Type: object
Type: boolean
Default: false
Force kill the processes.
Type: number
Default: undefined
Force kill processes that did not exit within the given number of milliseconds.
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.
Type: number
Default: undefined
Wait for processes to exit before returning.
Specifies the maximum time to wait in milliseconds. If processes haven't exited by then, an error is thrown (unless silent: true).
// Wait up to 2 seconds for Chrome to exit
await fkill('chrome', {waitForExit: 2000});
// Wait up to 5 seconds for database to shutdown gracefully
await fkill(dbPid, {waitForExit: 5000});
FAQs
Fabulously kill processes. Cross-platform.
The npm package fkill receives a total of 199,649 weekly downloads. As such, fkill popularity was classified as popular.
We found that fkill demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.