{"id":25448930,"url":"https://github.com/kris701/autoconst","last_synced_at":"2025-05-16T08:09:32.943Z","repository":{"id":277496712,"uuid":"932597858","full_name":"kris701/AutoConst","owner":"kris701","description":"A small tool to convert cs files with consts to other languages","archived":false,"fork":false,"pushed_at":"2025-02-14T07:43:22.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T08:31:26.159Z","etag":null,"topics":["converter","csharp"],"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/kris701.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2025-02-14T07:10:50.000Z","updated_at":"2025-02-14T07:42:23.000Z","dependencies_parsed_at":"2025-02-14T08:31:39.569Z","dependency_job_id":"3c947bc4-6cf0-4a7e-8a0d-cb2e5e0dee49","html_url":"https://github.com/kris701/AutoConst","commit_stats":null,"previous_names":["kris701/autoconst"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kris701%2FAutoConst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kris701%2FAutoConst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kris701%2FAutoConst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kris701%2FAutoConst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kris701","download_url":"https://codeload.github.com/kris701/AutoConst/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254493379,"owners_count":22080127,"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":["converter","csharp"],"created_at":"2025-02-17T20:15:49.763Z","updated_at":"2025-05-16T08:09:32.925Z","avatar_url":"https://github.com/kris701.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/user-attachments/assets/76e8dfc8-cfce-4c97-b280-6b4a681a478d\" width=\"200\" height=\"200\" /\u003e\n\u003c/p\u003e\n\n[![Build and Publish](https://github.com/kris701/AutoConst/actions/workflows/dotnet-desktop.yml/badge.svg)](https://github.com/kris701/AutoConst/actions/workflows/dotnet-desktop.yml)\n![Nuget](https://img.shields.io/nuget/v/AutoConst)\n![Nuget](https://img.shields.io/nuget/dt/AutoConst)\n![GitHub last commit (branch)](https://img.shields.io/github/last-commit/kris701/AutoConst/main)\n![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/m/kris701/AutoConst)\n![Static Badge](https://img.shields.io/badge/Platform-Windows-blue)\n![Static Badge](https://img.shields.io/badge/Platform-Linux-blue)\n![Static Badge](https://img.shields.io/badge/Framework-dotnet--9.0-green)\n\n# AutoConst\n\nThis is a small tool to automatically convert files with constant properties over to other language equivalents.\n\nSay you have this following `example.cs` file:\n```csharp\nnamespace Something\n{\n\tpublic static class ImportantStatics\n\t{\n\t\tpublic const string SomeStatic1 = \"abc\";\n\t\tpublic const string SomeStatic2 = 1111;\n\t}\n}\n\n```\n\n`autoconst -t example.cs -p TypeScriptProducer`\n\nIt will output a generated TS file with the static names as follows:\n```ts\n// This document is auto generated!\nexport const ImportantStatics = {\n\tSomeStatic1: \"abc\",\n\tSomeStatic2: 1111,\n}\n```\n\nThe currently available producers are:\n* `TypeScriptProducer`, to make TS code\n\nYou can also use the flag `-m` to \"merge\" several const files that has the same class name into a single output file.\nThis is useful if you need to have some sort of common reference table on the output side.\n\nThis package is available as a tool on the [NuGet Package Manager](https://www.nuget.org/packages/AutoConst/), so you can install it by writing `dotnet tool install AutoConst` in a terminal.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkris701%2Fautoconst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkris701%2Fautoconst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkris701%2Fautoconst/lists"}