https://github.com/unlight/parent-process-pid
Gets parent process id (PPID)
https://github.com/unlight/parent-process-pid
Last synced: 7 months ago
JSON representation
Gets parent process id (PPID)
- Host: GitHub
- URL: https://github.com/unlight/parent-process-pid
- Owner: unlight
- Created: 2016-07-17T13:30:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-02T16:28:19.000Z (about 9 years ago)
- Last Synced: 2025-02-08T03:38:07.037Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# parent-process-pid
Gets parent process id (PPID)
## API
```ts
parentProcessPid(childPid: number): Promise
```
## EXAMPLE
```js
const getPpid = require('parent-process-pid');
getPpid(2107).then(ppid => console.log(ppid));
```