Members
Methods
formatSize(size, optionsopt)
- Source:
Get a human readable file size.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
size |
number | The size to format. | |||||||||||||||||||||||||
options |
object |
<optional> |
The options.
Properties
|
Returns:
The formatted value.
- Type
- string | null
parseSize(size)
- Source:
Parse a human readable file size to bytes number value.
Parameters:
Name | Type | Description |
---|---|---|
size |
string | number | The size to parse. |
Returns:
The parsed size.
- Type
- number | null