Skip to content

wezm/gleam_bytesize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bytesize

Build Status Package Version Hex Docs Hex.pm License

gleam add bytesize

Usage

import 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.

Development

gleam test  # Run the tests

Credits

This package started off as a port of the bytesize Rust crate.

About

Byte quantity handling and formatting in Gleam

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project