{"id":33926402,"url":"https://github.com/danielkov/toon-rust","last_synced_at":"2026-06-10T09:31:11.642Z","repository":{"id":324128258,"uuid":"1096071800","full_name":"danielkov/toon-rust","owner":"danielkov","description":"Serde-compatible serializer and deserializer for TOON (Token-Oriented Object Notation)","archived":false,"fork":false,"pushed_at":"2026-03-14T15:46:13.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-15T02:18:49.015Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/danielkov.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-13T22:47:06.000Z","updated_at":"2026-03-14T15:46:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/danielkov/toon-rust","commit_stats":null,"previous_names":["danielkov/toon-rust"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danielkov/toon-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielkov%2Ftoon-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielkov%2Ftoon-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielkov%2Ftoon-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielkov%2Ftoon-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielkov","download_url":"https://codeload.github.com/danielkov/toon-rust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielkov%2Ftoon-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34146871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-12-12T10:12:51.035Z","updated_at":"2026-06-10T09:31:11.605Z","avatar_url":"https://github.com/danielkov.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# toon\n\nCommand-line tool for converting between JSON/YAML and TOON (Token-Oriented Object Notation) formats.\n\n## Installation\n\n```sh\ncargo install --git https://github.com/danielkov/toon-rust\n```\n\n## Usage\n\nThe CLI provides two subcommands: `encode` (JSON/YAML → TOON) and `decode` (TOON → JSON/YAML).\n\n### Encode JSON/YAML to TOON\n\n```sh\ntoon encode [OPTIONS] \u003cINPUT\u003e\ntoon e [OPTIONS] \u003cINPUT\u003e  # short alias\n```\n\n**Options:**\n\n- `--delimiter \u003ccomma|tab|pipe\u003e` - Array element delimiter (default: comma)\n- `--indent \u003cNUM\u003e` - Spaces per indentation level (default: 2)\n- `--key-folding \u003coff|safe\u003e` - Key folding mode (default: off)\n- `--flatten-depth \u003cNUM\u003e` - Maximum depth for inlining nested structures\n\n**Examples:**\n\n```sh\n# Convert JSON file to TOON\ntoon encode data.json\n\n# Convert YAML file to TOON\ntoon encode data.yaml\n\n# Fetch and convert JSON from URL\ntoon encode https://api.github.com/users\n\n# Convert inline JSON string\ntoon e '{\"name\":\"Alice\",\"age\":30}'\n\n# Use pipe delimiter for arrays\ntoon encode --delimiter pipe data.json\n```\n\n### Decode TOON to JSON/YAML\n\n```sh\ntoon decode [OPTIONS] \u003cINPUT\u003e\ntoon d [OPTIONS] \u003cINPUT\u003e  # short alias\n```\n\n**Options:**\n\n- `--indent \u003cNUM\u003e` - Spaces per indentation level (default: 2)\n- `--strict` - Enable strict validation mode\n- `--expand-paths \u003coff|safe\u003e` - Path expansion mode (default: off)\n- `-o, --output-type \u003cjson|yaml\u003e` - Output format (default: json)\n\n**Examples:**\n\n```sh\n# Convert TOON file to JSON\ntoon decode data.toon\n\n# Convert TOON to YAML\ntoon decode --output-type yaml data.toon\ntoon d -o yaml data.toon\n\n# Convert inline TOON string\ntoon d 'name Alice age 30'\n\n# Enable strict validation\ntoon decode --strict data.toon\n```\n\n## Input Sources\n\nThe tool accepts three types of input:\n\n- **File paths** - Reads from local filesystem\n- **URLs** - Fetches content via HTTP/HTTPS GET request\n- **Raw strings** - Parses string directly from command line argument\n\n## Output\n\nAll output is written to stdout. Pipe to a file or other tools as needed:\n\n```sh\ntoon encode data.json \u003e output.toon\ntoon decode data.toon | jq .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielkov%2Ftoon-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielkov%2Ftoon-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielkov%2Ftoon-rust/lists"}