0.0.1 • Published 8 years ago
parse-top v0.0.1
parse-top
Parses the output of top
. require
in Node or, if installed globally, pipe output from top -l 1
into parse-top
and JSON shall be returned.
The returned object has the following structure:
{
globalState: {
Processes: "",
// ...
},
processes: [
{
PID: "12345",
// ...
},
// ...
]
}
0.0.1
8 years ago