$prettyBytes
$prettyBytes will convert bytes to a human readable string.
Usage
$prettyBytes[byte]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| byte | number | The number to format | true |
Example(s)
This will convert bytes to a human readable string
1client.command({2 name: 'prettybytes',3 code: `4 $prettyBytes[1337]5 // return '1.34 KB'6 `7});This will convert bytes to a human readable string.
1module.exports = [{2 name: "prettybytes",3 code: `4 $prettyBytes[1337]5 // return '1.34 KB'6 `7}]