Skip to main content

@rtorcato/js-common / os

os

Functions

getOsPlatform()

getOsPlatform(): string | undefined

Defined in: os/index.ts:5

Returns the current operating system platform (Node.js only).

Returns

string | undefined

The platform (e.g., 'darwin', 'win32', 'linux').


getOsRelease()

getOsRelease(): string | undefined

Defined in: os/index.ts:14

Returns the OS release/version (Node.js only).

Returns

string | undefined


getOsArch()

getOsArch(): string | undefined

Defined in: os/index.ts:24

Returns the OS architecture (Node.js only).

Returns

string | undefined


getHomeDir()

getHomeDir(): string | undefined

Defined in: os/index.ts:33

Returns the user's home directory (Node.js only).

Returns

string | undefined


getTmpDir()

getTmpDir(): string | undefined

Defined in: os/index.ts:45

Returns the system's temporary directory (Node.js only).

Returns

string | undefined