{"id":13672254,"url":"https://github.com/yoshihitoh/refmt","last_synced_at":"2025-10-12T15:19:16.407Z","repository":{"id":37936158,"uuid":"163675898","full_name":"yoshihitoh/refmt","owner":"yoshihitoh","description":"Translate data format into another one. Currently only JSON and YAML are available.","archived":false,"fork":false,"pushed_at":"2023-04-13T20:58:02.000Z","size":1043,"stargazers_count":27,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T08:19:13.452Z","etag":null,"topics":["cli","command-line","command-line-tool","converter","json","utility","yaml"],"latest_commit_sha":null,"homepage":null,"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/yoshihitoh.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}},"created_at":"2018-12-31T14:40:16.000Z","updated_at":"2024-04-27T05:10:40.000Z","dependencies_parsed_at":"2024-11-11T10:31:51.461Z","dependency_job_id":null,"html_url":"https://github.com/yoshihitoh/refmt","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshihitoh%2Frefmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshihitoh%2Frefmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshihitoh%2Frefmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshihitoh%2Frefmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoshihitoh","download_url":"https://codeload.github.com/yoshihitoh/refmt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250786672,"owners_count":21487252,"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","command-line","command-line-tool","converter","json","utility","yaml"],"created_at":"2024-08-02T09:01:30.480Z","updated_at":"2025-10-12T15:19:11.387Z","avatar_url":"https://github.com/yoshihitoh.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# refmt\n[![Build Status](https://travis-ci.org/yoshihitoh/refmt.svg?branch=master)](https://travis-ci.org/yoshihitoh/refmt)\n\nrefmt is a data format translation tool written in Rust. Currently only JSON, YAML and TOML are available.\n\n# Syntax highlighting\nrefmt supports syntax highlighting.\n\n![Syntax highlighting example](https://i.imgur.com/vSlsRAC.png)\n\n# Installation\nrefmt is written ins Rust, so you need Rust toolchains. refmt compiled with Rust 1.30.0 (stable) or newer.\n\nTo build refmt:\n\n```bash\n$ git clone https://github.com/yoshihitoh/refmt\n$ cd refmt\n$ cargo build --release\n$ ./target/release/refmt --version\nrefmt 0.1.2\n```\n\n# Usage\n``` bash\n$ ./target/release/refmt --help\nrefmt 0.1.2\nyoshihitoh \u003cyoshihito.arih@gmail.com\u003e\nTranslate data format into another one.\n\nUSAGE:\n    refmt [OPTIONS]\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n    -i, --input \u003cFILE\u003e                   set the input file to use\n        --input-format \u003cFORMAT_NAME\u003e     set the name of input format [possible values: json, yaml]\n    -o, --output \u003cFILE\u003e                  set the output file to use\n        --output-format \u003cFORMAT_NAME\u003e    set the name of output format [possible values: json, yaml]\n```\n\n# Examples\n\n## JSON to YAML\n``` bash\n$ echo '{\"id\": 1, \"name\": {\"first\": \"John\", \"last\": \"Doe\"}}' | ./target/release/refmt --input-format json --output-format yaml\n---\nid: 1\nname:\n  first: John\n  last: Doe\n```\n\n\n## YAML to JSON\n``` bash\n$ cat \u003c\u003cEOS | ./target/release/refmt --input-format yaml --output-format json\n\u003e ---\n\u003e id: 1\n\u003e name:\n\u003e   first: John\n\u003e   last: Doe\n\u003e EOS\n{\n  \"id\": 1,\n  \"name\": {\n    \"first\": \"John\",\n    \"last\": \"Doe\"\n  }\n}\n```\n\n## JSON to TOML\n``` bash\n$ echo '{\"id\": 1, \"name\": {\"first\": \"John\", \"last\": \"Doe\"}}' | refmt --input-format json --output-format toml\nid = 1\n\n[name]\nfirst = 'John'\nlast = 'Doe'\n\n```\n\n# Running tests\n```bash\n$ cargo test --all\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoshihitoh%2Frefmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoshihitoh%2Frefmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoshihitoh%2Frefmt/lists"}