readableBytes
Converts a number of bytes to a human readable file size.
Parameters
Examples
readableBytes(1234);
// => 1.205078125 kB
readableBytes(1234, 2);
// => 1.21 kB
Returns string of human readable file size.
Meta
- version: 1.0.0
- Source: readable-bytes.ts