toml.cr v0.8.1
toml.cr
A TOML parser for Crystal, compliant with the v0.5.0 version of TOML.
Installation
Add this to your application's shard.yml:
dependencies:
toml:
github: crystal-community/toml.cr
branch: master
Usage
require "toml"
toml_string = %(
title = "TOML Example"
[owner]
name = "Lance Uppercut"
dob = 1979-05-27T07:32:00Z
)
toml = TOML.parse(toml_string)
puts toml["title"] #=> "TOML Example"
owner = toml["owner"].as(Hash)
puts owner["name"] #=> "Lance Uppercut"
puts owner["dob"] #=> "1979-05-27 07:32:00 UTC"
Repository
toml.cr
Owner
Statistic
- 65
- 15
- 3
- 33
- 0
- almost 2 years ago
- February 16, 2015
License
Links
Synced at
Tue, 27 Jan 2026 15:05:48 GMT
Languages
