npm install wintools
- ps(callback) where callback is
function(err, list)
returns a list of running processes. - kill.pid(pid, callback) kills a process by PID.
- kill.image(imageName, callback) kills a process by image name (e.g.
node.exe
). - shutdown.poweroff([callback]) turns of off the machine immediately.
- shutdown.restart([callback]) rstarts the machine immediately.
MIT