@zturnlibs/ztron-api


os

Interfaces

OsInfo

Defined in: os.ts:4

Properties

arch

arch: string

Defined in: os.ts:6

homedir

homedir: string

Defined in: os.ts:9

hostname

hostname: string

Defined in: os.ts:7

platform

platform: string

Defined in: os.ts:5

sep

sep: string

Defined in: os.ts:11

tmpdir

tmpdir: string

Defined in: os.ts:10

version

version: string

Defined in: os.ts:8

Variables

os

const os: object

Defined in: os.ts:56

Type Declaration

arch

arch: () => Promise<string>

Returns

Promise<string>

eol

eol: () => Promise<string>

The end-of-line sequence ("\n" or "\r\n").

Returns

Promise<string>

family

family: () => Promise<string>

The OS family (e.g. "macos", "windows", "linux").

Returns

Promise<string>

homedir

homedir: () => Promise<string>

Returns

Promise<string>

hostname

hostname: () => Promise<string>

Returns

Promise<string>

info

info: () => Promise<OsInfo>

Returns

Promise<OsInfo>

locale

locale: () => Promise<string | null>

The system locale tag (e.g. "en-US"), or null when unknown.

Returns

Promise<string | null>

platform

platform: () => Promise<string>

Returns

Promise<string>

tmpdir

tmpdir: () => Promise<string>

Returns

Promise<string>

type

type: () => Promise<string>

The OS type (e.g. "Darwin", "Windows_NT", "Linux").

Returns

Promise<string>

version

version: () => Promise<string>

Returns

Promise<string>

Functions

arch()

arch(): Promise<string>

Defined in: os.ts:20

Returns

Promise<string>


eol()

eol(): Promise<string>

Defined in: os.ts:52

The end-of-line sequence ("\n" or "\r\n").

Returns

Promise<string>


family()

family(): Promise<string>

Defined in: os.ts:47

The OS family (e.g. "macos", "windows", "linux").

Returns

Promise<string>


homedir()

homedir(): Promise<string>

Defined in: os.ts:29

Returns

Promise<string>


hostname()

hostname(): Promise<string>

Defined in: os.ts:23

Returns

Promise<string>


info()

info(): Promise<OsInfo>

Defined in: os.ts:14

Returns

Promise<OsInfo>


locale()

locale(): Promise<string | null>

Defined in: os.ts:37

The system locale tag (e.g. "en-US"), or null when unknown.

Returns

Promise<string | null>


platform()

platform(): Promise<string>

Defined in: os.ts:17

Returns

Promise<string>


tmpdir()

tmpdir(): Promise<string>

Defined in: os.ts:32

Returns

Promise<string>


type()

type(): Promise<string>

Defined in: os.ts:42

The OS type (e.g. "Darwin", "Windows_NT", "Linux").

Returns

Promise<string>


version()

version(): Promise<string>

Defined in: os.ts:26

Returns

Promise<string>