This library converts a file size in bytes into a human readable string.
Examples:
format 1234 == "1.23 kB"
format 238674052 == "238.67 MB"
format 543 == "543 B"
See package documentation for more details and customization options.
- 1.2.0 - 2018-11-24: Add formatWithSplit class of functions that return the formatted value and unit separately, as a tuple.
- 1.1.1 - 2018-08-31: Update for Elm 0.19, thanks to Julian Pistorius (@julianpistorius).
- 1.1.0 - 2017-06-01: Expose
formatBase2
as a convenience function (alias forformatWith { defaultSettings | units = Base2 }
. - 1.0.1 - 2017-06-01: Use myrho/elm-round internally for rounding.
- 1.0.0 - 2017-03-08: Initial release