{"id":13600972,"url":"https://github.com/rinetd/transfer","last_synced_at":"2026-01-12T15:57:21.442Z","repository":{"id":53269439,"uuid":"146053768","full_name":"rinetd/transfer","owner":"rinetd","description":"Converts from one encoding to another. Supported formats HCL ⇄ JSON ⇄ YAML⇄TOML⇄XML⇄plist⇄pickle⇄properties ...","archived":false,"fork":false,"pushed_at":"2018-11-02T10:21:52.000Z","size":606,"stargazers_count":80,"open_issues_count":2,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-13T20:21:41.280Z","etag":null,"topics":["bson","config","hcl","json","plist","properties","toml","transfer","yaml"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rinetd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-25T01:10:42.000Z","updated_at":"2025-08-11T01:52:17.000Z","dependencies_parsed_at":"2022-08-26T11:10:24.317Z","dependency_job_id":null,"html_url":"https://github.com/rinetd/transfer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rinetd/transfer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinetd%2Ftransfer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinetd%2Ftransfer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinetd%2Ftransfer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinetd%2Ftransfer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rinetd","download_url":"https://codeload.github.com/rinetd/transfer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinetd%2Ftransfer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28341888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T15:50:39.657Z","status":"ssl_error","status_checked_at":"2026-01-12T15:49:49.297Z","response_time":98,"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":["bson","config","hcl","json","plist","properties","toml","transfer","yaml"],"created_at":"2024-08-01T18:00:51.715Z","updated_at":"2026-01-12T15:57:21.394Z","avatar_url":"https://github.com/rinetd.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# transfer [![GoDoc](https://godoc.org/github.com/rinetd/transfer?status.png)](https://godoc.org/github.com/rinetd/transfer)[![Build Status](https://travis-ci.org/rinetd/transfer.svg?branch=master)](https://travis-ci.org/rinetd/transfer)\n\n[中文文档](README.zh.md)\n\nConverts from one encoding to another. \n\nSupported formats HCL ⇄ JSON ⇄ YAML⇄TOML⇄XML⇄plist⇄pickle⇄properties ... \n### install\n\n```\n$ go get github.com/rinetd/transfer\n```\n### Download\n\n```\nhttps://github.com/rinetd/transfer/releases\n```\n\n### usage\n\n```\nusage:\n\n\ttransfer [-f] [-s input.yaml] [-o output.json] /path/to/input.yaml [/path/to/output.json]\n\nConverts from one encoding to another. Supported formats (and their file extensions):\n\n\t- JSON (.json)\n\t- TOML (.toml)\n\t- YAML (.yaml or .yml)\n\t- HCL (.hcl or .tf)\n\t- XML (.xml)\n\t- MSGPACK (.msgpack)\n\t- PLIST (.plist)\n\t- BSON (.bson)\n\t- PICKLE (.pickle)\n\t- PROPERTIES (.prop or .props or .properties)\n\n```\n\n### docker usage\n\n```\n# build the transfer image\ndocker build -o rientd/transfer .\n```\n\n\n### examples\n\nConvert data/input.yml TO data/input.json\n$ transfer -f data/input.yaml           (output \"./data/input.json\")\n\n```\n$ transfer -f data/input.yaml out.json  (output \"./out.json\")\n$ transfer -f -s data/input.yaml -o /root/out.toml (output \"/root/out.toml\")\n$ transfer -f -s data/input.yaml -o hcl (output \"./data/input.hcl\")\n$ transfer -f -o yaml data/input.json   (output \"data/input.yaml\")\n```\n```yaml\nAuthor:\n  email: rinetd@163.com\n  github: rinetd\nmenu:\n  main:\n  - Identifier: categories\n    Name: categories\n    Pre: \u003ci class='fa fa-category'\u003e\u003c/i\u003e\n    URL: /categories/\n    Weight: -102\n  - Identifier: tags\n    Name: tags\n    Pre: \u003ci class='fa fa-oags'\u003e\u003c/i\u003e\n    URL: /tags/\n    Weight: -101\ntheme: hueman\n\n```\n\n```json\n{\n\t\"Author\": {\n\t\t\"email\": \"rinetd@163.com\",\n\t\t\"github\": \"rinetd\"\n\t},\n\t\"menu\": {\n\t\t\"main\": [\n\t\t\t{\n\t\t\t\t\"Identifier\": \"categories\",\n\t\t\t\t\"Name\": \"categories\",\n\t\t\t\t\"Pre\": \"\u003ci class='fa fa-category'\u003e\u003c/i\u003e\",\n\t\t\t\t\"URL\": \"/categories/\",\n\t\t\t\t\"Weight\": -102\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"Identifier\": \"tags\",\n\t\t\t\t\"Name\": \"tags\",\n\t\t\t\t\"Pre\": \"\u003ci class='fa fa-oags'\u003e\u003c/i\u003e\",\n\t\t\t\t\"URL\": \"/tags/\",\n\t\t\t\t\"Weight\": -101\n\t\t\t}\n\t\t]\n\t},\n\t\"theme\": \"hueman\"\n}\n```\n\n```hcl\n$ transfer main.json main.hcl\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinetd%2Ftransfer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frinetd%2Ftransfer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinetd%2Ftransfer/lists"}