Kill Windows process by name.
$ npm install --save win-process-killer
# or
$ yarn add win-process-killer
const processKiller = require('win-process-killer')
;(() => {
const killed = processKiller.killProcessByName('notepad.exe')
console.log(killed) // => returns `true` if killed or `false` if `no`
})()
killProcessByName(name)
Arguments:
- name
String
(required)
Returns Boolean
, true
if process successfuly killed or false
if no.
MIT