is-process-active
cross-platform check if process pid is active
Last updated 7 years ago by dickeyxxx .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install is-process-active 
SYNC missed versions from official npm registry.

is-process-active

Build status CircleCI codecov npm npm npm David GitHub top language

Cross-platform support for detecting if a process pid is active. Uses process.kill(pid, 0) on unix and tasklist.exe on Windows.

Usage:

const pid = require('is-process-active')
if (pid.activeSync(myPid)) {
  // do something if process is active
}

// or...

if (await pid.active(myPid)) {
  // do something if process is active
}

Current Tags

  • 1.0.1                                ...           latest (7 years ago)

2 Versions

  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Total 2
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (9)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE