-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathfkill.node.txt
33 lines (28 loc) · 1.76 KB
/
fkill.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
┏━━━━━━━━━━━┓
┃ FKILL ┃
┗━━━━━━━━━━━┛
ALTERNATIVES ==> # - fkill (preferred): cross-OS
# - taskkill: Windows only
VERSION ==> #9.0.0
FKILL(PROC_NAME|PID|':PORT'[_ARR] #Terminate a process, cross-OS:
[, OPTS])->PROMISE # - Linux: kill[all] [-9] [-I]
# - Max: [p]kill [-9] [-i]
# - Windows: TASKKILL (see its doc)
#OPTS:
# - force BOOL (def: false): terminate right way
# - forceAfterTimeout NUM (def: undefined): terminate after NUMms
# - ignoreCase BOOL (def: false)
# - silent BOOL (def: false): does not reject PROMISE on errors
# (Windows only)
# - tree BOOL (def: false): kill children recursively
#Noop if is current process.
#Might throw, including if process does not exist.
#Based on PID-FROM-PORT, PROCESS-EXISTS and EXECA (see their docs)
fkill-cli [NAME|PID|':PORT']... #CLI
#Without arguments, run interactively (search by NAME|PID|':PORT')
#Has fuzzy search
#8.0.0
--force|f #
--force-after-timeout|t=NUM #
--verbose|v #
--silent|s #