scalax.cli
Humanize or dehumanize bytes.
import scalax.cli.Memory Memory.humanize(10485760) // "10 MiB" implicit val MU = Memory.SI Memory.dehumanize("10 MB") // Some(10000000)
Represents memory units.
Memory unit with base 1024 and units like MiB.
Memory unit with base 1000 and units like TB.
Returns bytes.
Returns human readable bytes.
Humanize or dehumanize bytes.