Popularity
8.4
Growing
Activity
0.0
Declining
52
9
12
Programming language: Crystal
Tags:
Configuration
Latest version: v0.6.1
crystal-toml alternatives and similar shards
Based on the "Configuration" category.
Alternatively, view toml.cr alternatives based on common mentions on social networks and blogs.
Get performance insights in less than 4 minutes.
Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
Promoted
scoutapm.com
Do you think we are missing an alternative of crystal-toml or a related project?
README
toml.cr
A TOML parser for Crystal, compliant with the v0.4.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"