{"id":13594014,"url":"https://github.com/ironmansoftware/code-conversion","last_synced_at":"2025-04-09T05:32:44.041Z","repository":{"id":45788323,"uuid":"475994693","full_name":"ironmansoftware/code-conversion","owner":"ironmansoftware","description":"Code conversion command line tool for PowerShell and C#","archived":false,"fork":false,"pushed_at":"2023-11-10T05:04:52.000Z","size":71,"stargazers_count":134,"open_issues_count":9,"forks_count":23,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-03T06:29:54.493Z","etag":null,"topics":["converter","csharp","powershell"],"latest_commit_sha":null,"homepage":"","language":"C#","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/ironmansoftware.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":"2022-03-30T18:00:32.000Z","updated_at":"2025-03-04T13:45:18.000Z","dependencies_parsed_at":"2024-05-28T15:53:10.646Z","dependency_job_id":"2936077f-7c56-4724-954e-423cf969d0cd","html_url":"https://github.com/ironmansoftware/code-conversion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironmansoftware%2Fcode-conversion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironmansoftware%2Fcode-conversion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironmansoftware%2Fcode-conversion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ironmansoftware%2Fcode-conversion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ironmansoftware","download_url":"https://codeload.github.com/ironmansoftware/code-conversion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987056,"owners_count":21028891,"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","powershell"],"created_at":"2024-08-01T16:01:27.592Z","updated_at":"2025-04-09T05:32:40.975Z","avatar_url":"https://github.com/ironmansoftware.png","language":"C#","funding_links":[],"categories":["C#","C\\#","C# #"],"sub_categories":[],"readme":"# PowerShell to C# Code Conversion\n\nOrginally a feature of [PowerShell Pro Tools](https://docs.poshtools.com), this module provides the ability to convert between C# and PowerShell. No license required.\n\n# Installation\n\n```powershell\nInstall-Module CodeConversion\n```\n\n# Usage \n\n## Convert from C# to PowerShell\n\n```powershell\nInvoke-CodeConversion -CSharp 'class MyClass { \n    public object MyMethod()\n    {\n        return new Object();\n    }\n}'\n\u003c#\nOutputs: \n\nfunction MyMethod\n{\n        return (New-Object -TypeName Object)\n}\n\n#\u003e\n```\n\n## Convert from PowerShell to C#\n\n```powershell\nInvoke-CodeConversion -PowerShell 'Get-Process'\n# Outputs: System.Diagnostics.Process.GetProcesses()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fironmansoftware%2Fcode-conversion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fironmansoftware%2Fcode-conversion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fironmansoftware%2Fcode-conversion/lists"}