cp

check-process

check exisitance of process by pid

Showing:

Popularity

Downloads/wk

9

GitHub Stars

0

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

0.2KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

check-process

check existence of process by pid

Usage

const check = require('check-process')
const cp = require('child_process')

// return { exists: true, killable: false }
check(1)

// return { exists: true, killable: true }
let child = cp.exec(process.execPath, [someScript])
check(child.pid)

API

check(pid)

  • pid, {Number} process PID

Check existence of process by pid.

Return a object:

{
  exists: <Boolean>,      // is process exists
  killable: <Boolean>     // is process killable
}

LICENSE

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100