{"id":15101889,"url":"https://github.com/doks-coders/codeformatterpackage","last_synced_at":"2026-01-28T06:32:26.751Z","repository":{"id":227043438,"uuid":"770147912","full_name":"doks-coders/CodeFormatterPackage","owner":"doks-coders","description":"Nuget Package built for formatting cs files","archived":false,"fork":false,"pushed_at":"2024-03-19T00:15:48.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T22:35:25.363Z","etag":null,"topics":["csfiles","csharp","formatter","nuget","nuget-package"],"latest_commit_sha":null,"homepage":"https://youtu.be/9TvZ87yO0Cg","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doks-coders.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-11T02:33:45.000Z","updated_at":"2024-03-19T09:07:05.000Z","dependencies_parsed_at":"2024-09-20T06:00:46.051Z","dependency_job_id":null,"html_url":"https://github.com/doks-coders/CodeFormatterPackage","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":"0.16666666666666663","last_synced_commit":"2279bf2959a602211d8086584e6513f2931b99c9"},"previous_names":["doks-coders/codeformatterpackage"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doks-coders%2FCodeFormatterPackage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doks-coders%2FCodeFormatterPackage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doks-coders%2FCodeFormatterPackage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doks-coders%2FCodeFormatterPackage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doks-coders","download_url":"https://codeload.github.com/doks-coders/CodeFormatterPackage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332521,"owners_count":20921852,"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":["csfiles","csharp","formatter","nuget","nuget-package"],"created_at":"2024-09-25T18:42:14.488Z","updated_at":"2026-01-28T06:32:26.720Z","avatar_url":"https://github.com/doks-coders.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codeformatter Package\n\nA Simple Text formatter that formats the contents of a file using the c# style.\n[Watch Video](https://youtu.be/9TvZ87yO0Cg)\n\n\n\n## Installation\n\n```csharp\n  Install-Package CodeFormatterModule\n```\n\n## Imports\n\n#### import the Codeformatter\n\n```csharp\n  using CodeFormatterModule;\n```\n## API Reference\n\n### Format a single file\n\nPass in the path of the file you want formatted\n```csharp\nvar formatter = new FormatCode();\n\ntry\n{\n\tformatter.FormatCodeFile(\"File.cs\");\n}\ncatch (Exception ex) \n{\n\tConsole.WriteLine(ex.Message);\n}\n```\n\n| Parameter | Type     | Description                |\n| :-------- | :------- | :------------------------- |\n| `path` | `string` | Should contain relative path to your file |\n\n\n\n### Format multiple files\n\nPass in the paths of the file you want formatted in a string array\n```csharp\nvar formatter = new FormatCode();\n\ntry\n{\n\tvar files = new string[] { \"File1.cs\", \"File2.cs\" };\n    \tformatter.FormatCodeFile(files);\n}\ncatch (Exception ex) \n{\n\tConsole.WriteLine(ex.Message);\n}\n```\n\n| Parameter | Type     | Description                |\n| :-------- | :------- | :------------------------- |\n| `paths` | `string []` | Should contain relative paths to your files |\n\n\n\n### Format all files in directory and subdirectory\n\nPass in the path of the folder you want formatted \n```csharp\nvar formatter = new FormatCode();\n\ntry\n{\n\tformatter.FormatCodeFile(\"Folder\",children:true);\n}\ncatch (Exception ex) \n{\n\tConsole.WriteLine(ex.Message);\n}\n```\n\n| Parameter | Type     | Description                |\n| :-------- | :------- | :------------------------- |\n| `fileDirectory` | `string` | Should contain relative path to your folder |\n| `children` | `boolean` | Should be used if you want the children of the folder |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoks-coders%2Fcodeformatterpackage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoks-coders%2Fcodeformatterpackage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoks-coders%2Fcodeformatterpackage/lists"}