Skip to content

tony-o/raku-toml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOML

A TOML 1.0.0 compliant serializer/deserializer.

Usage

Parsing TOML

use TOML;

my $config = from-toml("config.toml".IO.slurp);
# use $config like any ol' hash

Generating TOML

use TOML;

my $config = {
  bands => ['green day',
            'motorhead',
            't swift',],
  favorite => 'little big',
};

my $toml-config = to-toml($config);
#favorite = "little big"
#bands = ["green day",
#         "motorhead",
#         "t swift"]

License

License: Artistic-2.0

Authors

@tony-o

Credits

The tests here use @BurntSushi's toml-tests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published