is-process-active
cross-platform check if process pid is active
Last updated a year ago by dickeyxxx .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (a year ago)

2 Versions

  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 2
This Week 7
This Month 11
Last Day 4
Last Week 0
Last Month 47
Dependencies (1)
Dev Dependencies (9)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |