Node.js native addon for find or kill win process. When the window system is unable to use tasklist/taskkill to get the process list or kill the process under some UAC settings, you can use this library
If you not install window build tools, please install first
npm install --global --production windows-build-tools --vs2015
npm i @songyh/win-process
const winProcess = require('@songyh/win-process')
killProcess(pid: number): boolean
const winProcess = require('@songyh/win-process')
const isSuccess = winProcess.killProcess(111)
findProcessId(processName: string): Array<number> | boolean
const winProcess = require('@songyh/win-process')
const pidArr = winProcess.findProcess('chrome.exe')
findProcessName(pid: number): string | boolean
const winProcess = require('@songyh/win-process')
const pname = winProcess.findProcessName(1)
findProcessPath(pid: number): string | boolean
const winProcess = require('@songyh/win-process')
const processPath = winProcess.findProcessPath(1)