Human Readable File Sizes in Elm
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.
Releases
- 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