9.0.0 • Published 2 years ago

fkill v9.0.0

Weekly downloads
173,446
License
MIT
Repository
github
Last release
2 years 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

@chrissong/react-setup@chrissong/cli@balena/ci-task-runnershelltools@startdt/cli-ui@startdt/next-workhzero-cli-ui@infinitebrahmanuniverse/nolb-fkcashxkudos-cli@everything-registry/sub-chunk-1678@stream-deck-for-node/clitaon-coreworkenv-clixmockerxmocker-cliwxdevtools-clitechfi-clisublime-iconsustainusthe-run@borealisgroup/cli-ui@react-cli-ui/cli@react-cli-ui/cli-service@react-cli-ui/cli-uiitbotjetbrains-eslint-killerjms-clikapok-jskillcommandkue-flowwi-layer-react-expressmachine_controller_servertnp-core@appjumpstart/launch@aisino/cli-ui@chrissong/simo-cli@chrissong/simo-core@chcaa/web-extractor7ghost-cli@abtnode/router-provider@abtnode/util@coffeekraken/sugar@decoupled/xlib@davidsemakula/webpack-spawn-plugin@dengwenlong/cli@dengwenlong/dwl-corezaportyt-playlist-herozoro-cli-utilwanikani-notifierwebpack-spawn-plugin@hash-bang/pss@igames/ghost-cli@fromage/cli-ui@loftysoul/soul-cli@manginx/cli@mgutz/task@nhatnguyenqn/stop-tabs@nkduy/cli-ui@epic-web/workshop-app@epic-web/workshop-utils@faltest/remote@kentcdodds/workshop-app@kentcdodds/workshop-utils@odysseum/cli@plasmicapp/nextjs-app-router@sodacitylabs/boring-framework@solidgoldpig/fb-runner-nodenanoprocessmysql-server-8-osx-x64nv4-uinv3-uintx-clisan-cli-uisciter-sandboxrc-ghost-cliselenium-standalonenode-care-daemonnitro-proxyno-cli-adsng2-button-loaderng2-preloaderng2-accordionsnginx-guinotificationcenter-settings-macosplasmic-supabase-shamspp-robot-modulepot-jsridereceiptsrebird-https-letsencryptsindresorhus.jssmterminalghost-cliilab-mathexam-localhotreload-clihugo-toolshide-desktop-iconshidden-fileshalo-mod-toolkit-core
9.0.0

2 years ago

8.1.1

2 years ago

8.1.0

3 years ago

8.0.1

3 years ago

8.0.0

4 years ago

7.2.1

4 years ago

7.2.0

4 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

6 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

8 years ago

5.0.0

8 years ago

4.1.0

9 years ago

4.0.0

9 years ago

3.1.0

10 years ago

3.0.0

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.0

10 years ago