{"id":15403177,"url":"https://github.com/woodruffw/toml2json","last_synced_at":"2026-02-10T05:06:28.736Z","repository":{"id":37157188,"uuid":"348542767","full_name":"woodruffw/toml2json","owner":"woodruffw","description":"A very small CLI for converting TOML to JSON","archived":false,"fork":false,"pushed_at":"2025-04-08T01:40:50.000Z","size":371,"stargazers_count":81,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T04:58:48.562Z","etag":null,"topics":["cli","json","serde","toml"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/toml2json","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/woodruffw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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},"funding":{"github":"woodruffw","thanks_dev":"u/gh/woodruffw"}},"created_at":"2021-03-17T01:26:31.000Z","updated_at":"2025-04-08T01:40:52.000Z","dependencies_parsed_at":"2023-12-26T00:24:36.148Z","dependency_job_id":"df18abfb-3fd1-4169-9f4b-35038ae0c4c0","html_url":"https://github.com/woodruffw/toml2json","commit_stats":{"total_commits":335,"total_committers":5,"mean_commits":67.0,"dds":"0.14328358208955227","last_synced_commit":"1fe48b6fb32a41508d96f5f9f1079d9f5b9a9a09"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodruffw%2Ftoml2json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodruffw%2Ftoml2json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodruffw%2Ftoml2json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodruffw%2Ftoml2json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/woodruffw","download_url":"https://codeload.github.com/woodruffw/toml2json/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665759,"owners_count":21142123,"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":["cli","json","serde","toml"],"created_at":"2024-10-01T16:06:38.606Z","updated_at":"2025-09-21T23:23:12.796Z","avatar_url":"https://github.com/woodruffw.png","language":"Rust","funding_links":["https://github.com/sponsors/woodruffw","https://thanks.dev/u/gh/woodruffw"],"categories":[],"sub_categories":[],"readme":"toml2json\n=========\n\n[![CI](https://github.com/woodruffw/toml2json/actions/workflows/ci.yml/badge.svg)](https://github.com/woodruffw/toml2json/actions/workflows/ci.yml)\n[![Crates.io](https://img.shields.io/crates/v/toml2json)](https://crates.io/crates/toml2json)\n![PyPI - Version](https://img.shields.io/pypi/v/toml2json)\n\nA command-line tool that converts TOML to JSON. Nothing more, nothing less.\n\n## Installation\n\n### Cargo\n\n```bash\ncargo install toml2json\n```\n\n### PyPI\n\n**NOTE**: [toml2json on PyPI](https://pypi.org/project/toml2json/)\nwas originally a pure Python CLI; ownership of the name on PyPI\nwas transferred to [woodruffw](https://pypi.org/user/woodruffw/)\nfor this Rust-based CLI in August 2025. Versions prior to 0.1.0 on PyPI\nare the old pure Python version.\n\n```bash\nuvx toml2json\nuv tool install toml2json\npipx install toml2json\n\n# or pip install, if you're in a virtual environment\n```\n\n### Homebrew\n\n`toml2json` is available via [Homebrew](https://brew.sh):\n\n```bash\nbrew install toml2json\n```\n\n### Alpine Linux\n\n`toml2json` is available for [Alpine Edge](https://pkgs.alpinelinux.org/packages?name=toml2json\u0026branch=edge). It can be installed via [apk](https://wiki.alpinelinux.org/wiki/Alpine_Package_Keeper) after enabling the [testing repository](https://wiki.alpinelinux.org/wiki/Repositories).\n\n```bash\napk add toml2json\n```\n\n### Arch Linux\n\nIf you're using Arch Linux, you can install `toml2json` using an [AUR helper](https://wiki.archlinux.org/title/AUR_helpers). For example:\n\n```bash\nparu -S toml2json\n```\n\n### Nixpkgs\n\n```\nnix-env --install toml2json\n```\n\nPlease let us know if you package `toml2json` for another package manager or ecosystem!\n\n## Usage\n\nConvert TOML on `stdin` to JSON, filtering it through `jq`:\n\n```bash\n$ toml2json \u003c\u003c\u003c 'wow = \"amazing\"' | jq\n```\n\nProduces:\n\n```json\n{\n  \"wow\": \"amazing\"\n}\n```\n\nConvert TOML from a file and pretty-print it without `jq`:\n\n```bash\n$ toml2json --pretty ~/.config/kbs2/kbs2.conf\n```\n\nProduces:\n\n```json\n{\n  \"age-backend\": \"RageLib\",\n  \"error-hook\": \"~/.config/kbs2/hooks/error-hook-notify\",\n  \"keyfile\": \"REDACTED-GO-AWAY\",\n  \"public-key\": \"REDACTED-GO-AWAY\",\n  \"reentrant-hooks\": false,\n  \"store\": \"~/.kbs2-store\",\n  \"wrapped\": true,\n  \"generators\": [\n    {\n      \"alphabet\": \"abcdefghijklmnopqrstuvwxyz0123456789(){}[]-_+=\",\n      \"length\": 16,\n      \"name\": \"default\"\n    }\n  ],\n  \"commands\": {\n    \"edit\": {\n      \"editor\": \"subl -w\",\n      \"post-hook\": \"~/.config/kbs2/hooks/push-repo\"\n    },\n    \"new\": {\n      \"generate-on-empty\": true,\n      \"post-hook\": \"~/.config/kbs2/hooks/push-repo\"\n    },\n    \"pass\": {\n      \"clear-after\": true,\n      \"clear-hook\": \"~/.config/kbs2/hooks/pass-clear-notify\",\n      \"clipboard-duration\": 10,\n      \"x11-clipboard\": \"Clipboard\"\n    },\n    \"rm\": {\n      \"post-hook\": \"~/.config/kbs2/hooks/push-repo\"\n    }\n  }\n}\n```\n\nAmazing. What more could you want? Hopefully nothing, because it will never do anything else.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoodruffw%2Ftoml2json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoodruffw%2Ftoml2json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoodruffw%2Ftoml2json/lists"}