Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ps-find

kraftz7MIT1.1.0

Find processes with ease

ps, find, process

readme

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