1.1.0 • Published 9 years ago

ps-find v1.1.0

Weekly downloads
11
License
MIT
Repository
github
Last release
9 years ago

ps-find

Find processes with ease

Install

$ npm install --save ps-find

Usage

var psFind = require('ps-find');

psFind.find('whatever', function (error, result) {
  console.log(result[0].pid); // 4123
  console.log(result[0].name); // whatever
});

API

find(input, callback)

input

Type: string

A process name or PID.

callback(error, result)

result

Type: Array

An array of objects containing all processes found. If no process is found, an empty array is returned.

Each result object contains the following properties:

pid

Type: number

process ID

name

Type: string

Process name

License

MIT

1.1.0

9 years ago

1.0.0

9 years ago