@yoda/system

Methods

(inner) diskUsage(path) → {module:@yoda/system~DiskUsage}

Set the system as recovery mode.

Parameters:
Name Type Description
path string

the path to be analyzed

(inner) diskUsage(path) → {module:@yoda/system~DiskUsage}

Get disk usage at a path.

Parameters:
Name Type Description
path string

the path to be analyzed

(inner) parseDateString(date, format) → {Date}

convert a string representation of time to a time tm structure.

Parameters:
Name Type Description
date string

the date string.

format string

the format.

Returns:
Type:
Date

the returned date.

(static) getDeviceName() → {string}

Get unified device name.

Returns:
Type:
string

the device name.

Type Definitions

DiskUsage

Properties:
Name Type Description
available number
free number
total number