@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>

换行序列("\n" 或 "\r\n")。

Returns

Promise<string>

family

family: () => Promise<string>

操作系统家族(如 "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>

系统 locale 标签(如 "en-US"),未知时为 null。

Returns

Promise<string | null>

platform

platform: () => Promise<string>

Returns

Promise<string>

tmpdir

tmpdir: () => Promise<string>

Returns

Promise<string>

type

type: () => Promise<string>

操作系统类型(如 "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

换行序列("\n" 或 "\r\n")。

Returns

Promise<string>


family()

family(): Promise<string>

Defined in: os.ts:47

操作系统家族(如 "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

系统 locale 标签(如 "en-US"),未知时为 null。

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

操作系统类型(如 "Darwin"、"Windows_NT"、"Linux")。

Returns

Promise<string>


version()

version(): Promise<string>

Defined in: os.ts:26

Returns

Promise<string>