Pslook is a NodeJS module retrieving processes informations on GNULinux systems without spawning a new process and in a full non-blocking way using the fs module and the proc filesystem only.
// List all processesvar ps=;ps;// List all node processesvar ps=;ps;// List all processes and get their working dir + memory usagevar ps=;ps;// Read every available informations for a process by its PIDvar ps=;ps;
Feel free to pull your code if this codebase license is ok for you.
More OS Support
This library is only intended to run with Unix (particularly Linux) systems. If you wish to have MacOS/Windows support, write your own and mimic the API. I'll be glad to claim its existence there.