parse-top

0.0.1 • Public • Published

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",
      // ...
    },
    // ...
  ]
}

Readme

Keywords

Package Sidebar

Install

npm i parse-top

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • rogerbf