{"id":48217739,"url":"https://github.com/purpledoubled/json-fmt","last_synced_at":"2026-04-04T19:01:49.894Z","repository":{"id":341424361,"uuid":"1169518091","full_name":"PurpleDoubleD/json-fmt","owner":"PurpleDoubleD","description":"JSON Swiss Army Knife - format, minify, convert to env/yaml","archived":false,"fork":false,"pushed_at":"2026-02-28T20:06:21.000Z","size":5369,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-01T19:17:36.533Z","etag":null,"topics":["cli","converter","devtools","formatter","json","typescript","yaml"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/PurpleDoubleD.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-28T20:05:52.000Z","updated_at":"2026-03-01T07:52:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/PurpleDoubleD/json-fmt","commit_stats":null,"previous_names":["purpledoubled/json-fmt"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/PurpleDoubleD/json-fmt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PurpleDoubleD%2Fjson-fmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PurpleDoubleD%2Fjson-fmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PurpleDoubleD%2Fjson-fmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PurpleDoubleD%2Fjson-fmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PurpleDoubleD","download_url":"https://codeload.github.com/PurpleDoubleD/json-fmt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PurpleDoubleD%2Fjson-fmt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31409471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","converter","devtools","formatter","json","typescript","yaml"],"created_at":"2026-04-04T19:01:47.410Z","updated_at":"2026-04-04T19:01:49.886Z","avatar_url":"https://github.com/PurpleDoubleD.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-fmt 🛠️\n\n**JSON Swiss Army Knife** — Format, minify, and convert JSON to .env or YAML from the command line.\n\n## Install\n\n```bash\nnpm install -g json-fmt\n```\n\n## Usage\n\n```bash\n# Format JSON (pretty print)\necho '{\"name\":\"test\",\"value\":123}' | json-fmt\n\n# Minify JSON\necho '{\"name\":\"test\",\"value\":123}' | json-fmt --minify\n\n# Convert JSON to .env\necho '{\"name\":\"test\",\"value\":123}' | json-fmt --to-env\n\n# Convert JSON to YAML\necho '{\"name\":\"test\",\"value\":123}' | json-fmt --to-yaml\n\n# Custom indent (2 or 4)\necho '{\"a\":1}' | json-fmt -i 4\n```\n\n## Options\n\n| Flag | Description |\n|------|-------------|\n| `-f`, `--format` | Format JSON (default) |\n| `-m`, `--minify` | Minify JSON |\n| `--to-env` | Convert JSON to .env format |\n| `--to-yaml` | Convert JSON to YAML |\n| `-i`, `--indent` | Indentation (2 or 4) |\n| `-h`, `--help` | Show help |\n\n## Examples\n\n### From file\n```bash\njson-fmt data.json\njson-fmt data.json --minify \u003e data.min.json\n```\n\n### Pipe chain\n```bash\ncurl -s https://api.example.com/data | json-fmt | jq '.data'\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurpledoubled%2Fjson-fmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurpledoubled%2Fjson-fmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurpledoubled%2Fjson-fmt/lists"}