ps-find

1.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i ps-find

Weekly Downloads

4

Version

1.1.0

License

MIT

Last publish

Collaborators

  • kraftz