{"id":13509400,"url":"https://github.com/zamith/tomlex","last_synced_at":"2025-07-10T20:11:09.646Z","repository":{"id":22149691,"uuid":"25480913","full_name":"zamith/tomlex","owner":"zamith","description":"A TOML parser for elixir","archived":false,"fork":false,"pushed_at":"2018-07-25T09:35:58.000Z","size":35,"stargazers_count":32,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T05:24:55.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zamith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-20T18:42:41.000Z","updated_at":"2024-06-23T06:00:30.000Z","dependencies_parsed_at":"2022-08-19T18:10:33.273Z","dependency_job_id":null,"html_url":"https://github.com/zamith/tomlex","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zamith%2Ftomlex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zamith%2Ftomlex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zamith%2Ftomlex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zamith%2Ftomlex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zamith","download_url":"https://codeload.github.com/zamith/tomlex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806035,"owners_count":20350775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T02:01:07.232Z","updated_at":"2025-03-16T07:31:46.970Z","avatar_url":"https://github.com/zamith.png","language":"Elixir","readme":"# Tomlex [![Build Status](https://travis-ci.org/zamith/tomlex.svg)](https://travis-ci.org/zamith/tomlex) [![Inline docs](http://inch-ci.org/github/zamith/tomlex.svg?branch=master)](http://inch-ci.org/github/zamith/tomlex)\n\nA TOML parser for elixir.\n\n## Getting Started\n\nYou can read all about the TOML markup language in the [official github repo](https://github.com/toml-lang/toml).\n\n### Requirements\n\n* Elixir v1.0.0+\n\n### Usage\n\nAdd tomlex as a dependency in your `mix.exs` file.\n\n``` elixir\ndefp deps do\n  [{:tomlex, \"\u003e= 0.0.0\"}]\nend\n```\n\nAlternatively you can get the edge version.\n\n``` elixir\ndefp deps do\n  [{:tomlex, git: \"https://github.com/zamith/tomlex.git\"}]\nend\n```\n\nAfter you're done, run `mix deps.get` in your shell to fetch the dependencies.\n\nTomlex gets a string and parses it into an elixir `Map` using the `load`\nfunction.\n\n``` elixir\ndefmodule YourApp do\n  def your_function do\n    parsed_file = File.read!(\"path/to/file.toml\") |\u003e Tomlex.load\n  end\nend\n```\n\n*Notice:* Do not use different data types in the same array. Tomlex allows it\nfor now, but will disallow it in the future, as per the [TOML specs](https://github.com/toml-lang/toml#array).\n\n### Documentation\n\nYou can find more documentation [here](http://hexdocs.pm/tomlex/).\n\n# Roadmap\n\n- [X] Comments\n- [X] Integers\n- [X] Strings\n- [X] Floats\n- [X] Boolean\n- [X] Tables\n- [X] Nested Tables\n- [X] Arrays\n- [X] Nested Arrays\n- [ ] Array of Tables\n- [ ] Datetime\n- [ ] Error handling\n- [ ] Literal strings\n- [ ] Multi-line basic strings\n- [ ] Multi-line literal strings\n- [ ] Disallow different data types in arrays\n- [ ] Better string escaping support\n- [ ] UTF-8 `\\uXXXX` and `\\UXXXXXXXX` forms\n\n# Contributing\n\nTo contribute you need to fork tomlex, compile it from source, test it, push the\nchanges and open a pull request. Here's the commands to do it.\n\n```\n# Fork the repo on github\n\ngit clone git@github.com:your-name/tomlex.git\ncd tomlex\nmix test\n\n# Do your awesome changes, make sure the tests still run and commit them locally\n\ngit push\n\n# Go to github and open a pull request\n```\n\n# License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Luis Zamith Ferreira\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","funding_links":[],"categories":["Text and Numbers"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzamith%2Ftomlex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzamith%2Ftomlex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzamith%2Ftomlex/lists"}