gleam add bytesizeimport bytesize
pub fn main() {
let s = bytesize.b(10_485_760)
|> bytesize.to_string // "10.0 MiB"
}Further documentation can be found at https://hexdocs.pm/bytesize.
gleam test # Run the testsThis package started off as a port of the bytesize Rust crate.