Skip to content

$prettyBytes

$prettyBytes will convert bytes to a human readable string.

Usage

$prettyBytes[byte]

Parameters

FieldTypeDescriptionRequired
bytenumberThe number to formattrue

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
});