Wrapper for the Windows
taskkillcommand. Ends one or more tasks or processes.
$ npm install taskkill
import taskkill from 'taskkill'; await taskkill([4970, 4512]);
taskkill docs for more.
string | number | string | number
One or more process IDs or image names, but not mixed.
password options are mutually inclusive.
Name or IP address of a remote computer (do not use backslashes). The default is the local computer.
A user specified by
The default is the permissions of the current logged on user on the computer issuing the command.
Password of the user account for the specified
Types of processes to include or exclude from termination.
taskkill docs for supported filters.
Forcefully terminate processes. Ignored for remote processes as all remote processes are forcefully terminated.
Terminate all child processes along with the parent process, commonly known as a tree kill.