psnode
A Node.js KISS module to list and kill process on OSX and Windows.
This use ps
and tasklist
to list processes and kill
and taskkill
to kill a process.
Install
$ npm install psnode
Usage
List processes
var ps = ; ps;
Kill process by PID
var ps = ; ps;
Note
If the full command line is required on windows wmic.exe would be the way to go but it's not available on Windows XP Home Edition.
Licence
(MIT)