Expand description

pretty_bytes takes a u64 that represent a number of bytes and output a String in prettier way that make sense for a human being.

Provide customizations to use calculation with 1000 or 1024 as well as how many decimal to display.

Structs

Functions

  • pretty_bytes main function that convert bytes into a pretty format that is easier to read for a humain