1.1.4 • Published 7 years ago

pid-comm v1.1.4

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

pid-comm

Returns the result of running ps -ax -o pid -o comm.

In Node.js:

npm install pid-comm

As a command line tool:

npm install -g pid-comm

The pid-comm command is now available in your command line.

Usage

Node.js

const ps = require('pid-comm')

ps()
  .then(processes => console.log(processes))
  .catch(e => console.error(e))

// [
//   {
//     pid: 42,
//     comm: "life"
//   }
// ]

CLI

pid-comm

Writes JSON to stdout with the following structure:

[
  {
    "pid": 42,
    "comm": "life"
  }
]
1.1.4

7 years ago

1.1.3

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago