UNPKG

process-ancestry

Version:

Cross-platform Node.js library for retrieving process ancestry information on Unix/Linux, macOS, and Windows

13 lines (10 loc) 281 B
interface ProcessInfo { /** Process ID */ pid: number; /** Parent Process ID */ ppid: number; /** Command line or executable name */ command?: string; } declare function getProcessAncestry(pid?: number): Array<ProcessInfo>; export { getProcessAncestry };