UNPKG

@plurid/plurid-functions

Version:
11 lines (10 loc) 286 B
/** * Convert bytes to human readable text, e.g. `12345678` bytes to `12.34 MB`. * * `binary` sets the block size to `1024` or `1000` bytes. * * @param binary * @returns */ declare const humanFormat: (size: number, binary?: boolean) => string; export { humanFormat, };