native-process-working-directory
v1.0.2
Published
![Node CI](https://github.com/Eugeny/native-process-working-directory/workflows/Node%20CI/badge.svg)
Downloads
1,440
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|null
Note: getWorkingDirectoryFromPID()
on Windows might require administrator privileges, use getWorkingDirectoryFromHandle()
if you own the process.