-
Notifications
You must be signed in to change notification settings - Fork 16
/
deno_bytes.deno.txt
20 lines (13 loc) · 1.69 KB
/
deno_bytes.deno.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
DENO_BYTES
VERSION ==> #Part of std
#Browser compatible
std/fmt/bytes #
format(NUM[, OPTS])->STR #Format NUM bytes in human-friendly STR, e.g. '1.34kB'
OPTS.bits #BOOL (def: false). Return bits instead of bytes
OPTS.binary #BOOL (def: false). Use KB (1024) instead of kB (1000), etc.
OPTS.signed #BOOL (def: false). Prepend positive NUM with +
OPTS.minimumFractionDigits
OPTS.maximumFractionDigits #NUM (def: 3). Uses NUM.toLocaleString()
OPTS.locale #BOOL (def: false) or 'LANG'[_ARR]. Uses NUM.toLocaleString()