Skip to content

Eugeny/native-process-working-directory

Repository files navigation

native-process-working-directory

Node CI

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published