- Will throw if there's a problem.
- Does not throw for no matching processes.
// kills all processes named 'node'
pkill('node')
// kills all processes matching 'node debug'
pkill.full('node debug')
- Does not err for no matching processes.
pkill('node', function (err, validPid) {
err // if err.
validPid // if matched any processes
})
- Not work on windows.
MIT