Popularity
8.4
Stable
Activity
0.0
Stable
57
9
13
Programming language: Crystal
Tags:
Configuration
Latest version: v0.6.1
crystal-toml alternatives and similar shards
Based on the "Configuration" category.
Alternatively, view crystal-toml alternatives based on common mentions on social networks and blogs.
-
totem
Crystal configuration with spirit. Load and parse configuration in JSON, YAML, dotenv formats.
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.
Promo
www.sonarlint.org
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"