parent-process-pid
Gets parent process id (PPID)
API
parentProcessPid(childPid: number): Promise<number>
EXAMPLE
const getPpid = require('parent-process-pid');
getPpid(2107).then(ppid => console.log(ppid));
Gets parent process pid (PPID).
Gets parent process id (PPID)
parentProcessPid(childPid: number): Promise<number>
const getPpid = require('parent-process-pid');
getPpid(2107).then(ppid => console.log(ppid));