Skip to content

An Elm library to convert file sizes in bytes into human readable strings.

License

Notifications You must be signed in to change notification settings

basti1302/elm-human-readable-filesize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Human Readable File Sizes in Elm Travis build Status

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.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 for formatWith { defaultSettings | units = Base2 }.
  • 1.0.1 - 2017-06-01: Use myrho/elm-round internally for rounding.
  • 1.0.0 - 2017-03-08: Initial release

About

An Elm library to convert file sizes in bytes into human readable strings.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages