Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rtfeldman/elm-hex
Work with Hexadecimal numbers in Elm.
https://github.com/rtfeldman/elm-hex
Last synced: 3 months ago
JSON representation
Work with Hexadecimal numbers in Elm.
- Host: GitHub
- URL: https://github.com/rtfeldman/elm-hex
- Owner: rtfeldman
- License: bsd-3-clause
- Created: 2018-08-21T17:21:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-26T08:52:27.000Z (over 4 years ago)
- Last Synced: 2024-08-01T13:24:18.547Z (5 months ago)
- Language: Elm
- Homepage: https://package.elm-lang.org/packages/rtfeldman/elm-hex/latest
- Size: 9.77 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ccamel - rtfeldman/elm-hex - Work with Hexadecimal numbers in Elm. (Elm)
README
# hex
Convert integers to and from hexadecimal strings in Elm.
-- Convert a hexdecimal string such as "abc94f" to a decimal integer.
Hex.fromString "a5" == Ok 165
Hex.fromString "hat" == Err "invalid hexadecimal string"-- Convert a decimal integer to a hexdecimal string such as `"abc94f"`.
Hex.toString 165 == "a5"