Skip to content

$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

1
client.command({
2
name: 'prettybytes',
3
code: `
4
$prettyBytes[1337]
5
// return '1.34 KB'
6
`
7
});