https://github.com/wolfadex/elm-toml
A TOML parser for Elm
https://github.com/wolfadex/elm-toml
Last synced: about 1 year ago
JSON representation
A TOML parser for Elm
- Host: GitHub
- URL: https://github.com/wolfadex/elm-toml
- Owner: wolfadex
- Created: 2024-06-11T22:38:37.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-27T22:24:43.000Z (almost 2 years ago)
- Last Synced: 2025-02-07T18:14:53.970Z (over 1 year ago)
- Language: Elm
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# elm-toml
For parsing [TOML](https://toml.io/) files in Elm.
Currently supports v1.0.0 (latest at the time of publishing).
- 🧪 tested
- 🚧 in-progress
- 🔮 future work
Supported:
- 🚧 root parser
- 🧪 String value
- 🧪 Integer value
- 🧪 Float value
- 🧪 Boolean value
- 🔮 Offset Date-Time value
- 🔮 Local Date-Time value
- 🔮 Local Date value
- 🔮 Local Time value
- 🧪 Array value
- 🧪 Inline Table value
- 🧪 tables
- 🧪 array of tables
-----
# elm-rfc3339
Parses a String into an [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339) date time format.
Some examples of what these look like...
A local time:
Rfc3339.parse "09:15:22" == TimeLocal { hour = 9, minute = 15, second = 22 }
A local date:
Rfc3339
For differences with ISO 8601, I recommend checking out