is-process-active
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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
}

Readme

Keywords

none

Package Sidebar

Install

npm i is-process-active

Weekly Downloads

21

Version

1.0.1

License

MIT

Last publish

Collaborators

  • dickeyxxx