native-process-working-directory
v1.0.2
Published

Readme
native-process-working-directory
Gets another process' working directory, natively, without parsing lsof output or whatnot.
export function getWorkingDirectoryFromPID (pid: number): string|null
// Windows only
export function getWorkingDirectoryFromHandle (handle: number): string|nullNote: getWorkingDirectoryFromPID() on Windows might require administrator privileges, use getWorkingDirectoryFromHandle() if you own the process.
