Some Windows tools for node.js

wintools - Some windows tools for node.js

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