augment pretty-bytes to make the output a little more readable (and a little less precise)
Bytes formatter module provides a function to format byte values into human-readable strings with appropriate units (bytes, KB, MB, GB, TB, PB).
Convert bytes to a human readable string: 1337 → 1.34 kB
Convert bytes to a human readable string: 1337 → 1.34 kB and works on IE 11 because we don't use arrow functions and use var
instead of const
to declare variables 😑