check-process
check existence of process by pid
Usage
const check = const cp = // return { exists: true, killable: false } // return { exists: true, killable: true }let child = cp
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