{"id":19024832,"url":"https://github.com/hatmic/varconverter","last_synced_at":"2026-06-20T23:31:14.342Z","repository":{"id":239321572,"uuid":"799212072","full_name":"Hatmic/VarConverter","owner":"Hatmic","description":"Translate the input variable names and variable values into code in various languages.","archived":false,"fork":false,"pushed_at":"2024-05-12T03:28:46.000Z","size":1440,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T19:12:31.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/Hatmic.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":"2024-05-11T13:25:47.000Z","updated_at":"2024-05-12T03:30:48.000Z","dependencies_parsed_at":"2024-11-08T20:43:07.611Z","dependency_job_id":null,"html_url":"https://github.com/Hatmic/VarConverter","commit_stats":null,"previous_names":["hatmic/varjsconverter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hatmic/VarConverter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hatmic%2FVarConverter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hatmic%2FVarConverter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hatmic%2FVarConverter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hatmic%2FVarConverter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hatmic","download_url":"https://codeload.github.com/Hatmic/VarConverter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hatmic%2FVarConverter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34589204,"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-20T02:00:06.407Z","response_time":98,"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":"2024-11-08T20:38:58.657Z","updated_at":"2026-06-20T23:31:14.323Z","avatar_url":"https://github.com/Hatmic.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VarJsConverter\r\n\r\n### Introduction\r\n\r\nTranslate the input variable names and variable values into code in various languages.\r\n\r\nIn the first line of input.txt, you should enter either `js`, `ts` or `py` to indicate whether you want to output as a JavaScript, TypeScript or Python file.\r\n\r\nWrite data in `input.txt`, translating the input variable names and variable values into JavaScript code, for example, `varName varNum`, such as `hatmic 2009` indicating the declaration of the `hatmic` variable and assigning it the value `2009`.\r\n\r\n### 介绍\r\n\r\n将输入的变量名和变量值翻译成各种语言的代码。\r\n\r\n在 input.txt 的第一行，您应该输入 `js` 或 `ts`，以指明您希望输出为 JavaScript 文件，TypeScript 文件还是 Python 文件。\r\n\r\n在 `input.txt` 中写入数据，将输入的变量名和变量值翻译成 JavaScript 代码，例如 `varName varNum`，例如 `hatmic 2009` 表示声明 `hatmic` 变量并赋值为 `2009`。\r\n\r\n### Input Output Case\r\n\r\n##### #1\r\n\r\nInput  (in input.txt)\r\n\r\n```\r\njs\r\nhatmic 2009\r\n```\r\n\r\nOutput (in output.js)\r\n\r\n```javascript\r\nlet hatmic = 2009;\r\n```\r\n\r\n##### #2\r\n\r\nInput (in input.txt)\r\n\r\n```\r\njs\r\nhatmic 2009\r\nhat mic\r\ncode cpp\r\ncode c\r\ncode javascript\r\ncode python\r\ncode dart\r\n```\r\n\r\nOutput (in output.js)\r\n\r\n```javascript\r\nlet hatmic = 2009;\r\nlet hat = \"mic\";\r\nlet code = \"cpp\";\r\ncode = \"c\";\r\ncode = \"javascript\";\r\ncode = \"python\";\r\ncode = \"dart\";\r\n```\r\n\r\n##### #3\r\n\r\nInput (in input.txt)\r\n\r\n```\r\nts\r\nhatmic 2009\r\nhat mic\r\ncode cpp\r\ncode c\r\ncode javascript\r\ncode python\r\ncode dart\r\n```\r\n\r\nOutput (in output.ts)\r\n\r\n```typescript\r\nlet hatmic = 2009;\r\nlet hat = \"mic\";\r\nlet code = \"cpp\";\r\ncode = \"c\";\r\ncode = \"javascript\";\r\ncode = \"python\";\r\ncode = \"dart\";\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatmic%2Fvarconverter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhatmic%2Fvarconverter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatmic%2Fvarconverter/lists"}