proc-stats
library for getting memory and cpu usage for windows, mac or linux - other os's are not supported. No production dependancies or compilation needed :)
look at the unit tests to see how it is used. remember - you can pull out basic process memory stuff (rss, heapTotal, heapUsed) using process.memoryUsage() - this gives you the % CPU usage per process, and if you are using linux the vsize
usage:
npm install proc-stats
var procStats = ; procStats;
thanks to Kyll Ross for the windows stuff, https://github.com/KyleRoss/windows-cpu - NB though, I have been testing, and the CPU time always seems to be returningzero - I suspect my unit test isnt generating enough load on windows, dont have time right now to investigate further...