{"id":15561422,"url":"https://github.com/jeevanjames/codebits","last_synced_at":"2025-04-23T22:29:36.761Z","repository":{"id":95017528,"uuid":"106943330","full_name":"JeevanJames/CodeBits","owner":"JeevanJames","description":"Useful code blocks that can included in your C# projects through NuGet","archived":false,"fork":false,"pushed_at":"2021-11-10T21:05:44.000Z","size":703,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T08:19:16.887Z","etag":null,"topics":["code-bits","csharp","nuget","utility-library"],"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/JeevanJames.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":"2017-10-14T16:24:13.000Z","updated_at":"2023-11-27T20:20:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"15b2753a-32cf-471e-ac79-08f02f1ee748","html_url":"https://github.com/JeevanJames/CodeBits","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/JeevanJames%2FCodeBits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeevanJames%2FCodeBits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeevanJames%2FCodeBits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeevanJames%2FCodeBits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JeevanJames","download_url":"https://codeload.github.com/JeevanJames/CodeBits/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250526047,"owners_count":21445122,"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":["code-bits","csharp","nuget","utility-library"],"created_at":"2024-10-02T16:08:08.481Z","updated_at":"2025-04-23T22:29:36.745Z","avatar_url":"https://github.com/JeevanJames.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Bits\nCode Bits are a set of useful code blocks that can be included in your C# projects through [NuGet](http://nuget.org/). Each code bit is a single source file that gets added to a _CodeBits_ folder in your project when you import it.\n\nCode Bits does not add assemblies to your project.\n\nYou can do a search for '[CodeBits](https://www.nuget.org/packages?q=CodeBits)' on NuGet.org to view the list of available Code Bits packages.\n\n## General code bits\n| Name | Compatibility | Description |\n|------|---------------|-------------|\n| *[ByteArrayHelper](https://github.com/JeevanJames/CodeBits/wiki/ByteArrayHelper)* | .NET Framework 3.5 and higher | Set of utility extensions for byte arrays. |\n| *[ByteSizeFriendlyName](https://github.com/JeevanJames/CodeBits/wiki/ByteSizeFriendlyName)* | .NET Framework 3.5 and higher | Builds a friendly string representation of a specified byte size value, after converting it to the best matching unit (bytes, KB, MB, GB, etc.). |\n| *[EnumIterator](https://github.com/JeevanJames/CodeBits/wiki/EnumIterator)* | .NET Framework 3.5 and higher | Provides an iterator for traversing through the values of an enum type. |\n| *[IniFile](https://github.com/JeevanJames/CodeBits/wiki/IniFile)* | .NET Framework 3.5 and higher | Class to read and modify .INI files. |\n| *[LibraryEvents](https://github.com/JeevanJames/CodeBits/wiki/LibraryEvents)* | .NetStandard 2.0 and higher | Provides support for class libraries to raise status events. |\n| *[PasswordGenerator](https://github.com/JeevanJames/CodeBits/wiki/PasswordGenerator)* | .NET Framework 3.5 and higher | Generates a random password. |\n| *[ResourceExtensions](https://github.com/JeevanJames/CodeBits/wiki/ResourceExtensions)* | .NetStandard 2.0 and higher | Extensions for loading assembly embedded resources in various formats. |\n| *[SaltedHash](https://github.com/JeevanJames/CodeBits/wiki/SaltedHash)* | .NET Framework 3.5 and higher | A helper class to generate and validate salted hashes. |\n| *[ShortGuid](https://github.com/JeevanJames/CodeBits/wiki/ShortGuid)* | .NetStandard 2.1 and higher | Shorter, URL-friendly and readable GUID. |\n\n## Custom collections\n| Name | Description |\n|------|-------------|\n| *[OrderedCollection\u003cT\u003e](https://github.com/JeevanJames/CodeBits/wiki/OrderedCollection)* | An automatically sorted collection that has options to allow/disallow duplicate items and optionally sort in reverse order. |\n| *OrderedObservableCollection\u003cT\u003e* | An automatically sorted observable collection that has options to allow/disallow duplicate items and optionally sort in reverse order. |\n\n## Windows-specific code bits\n| Name | Description |\n|------|-------------|\n| *[WindowsServiceRunner](https://github.com/JeevanJames/CodeBits/wiki/WindowsServiceRunner)* | Helper class to execute a Windows Service project either as a Console Application or a Windows Service, depending on the project type. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeevanjames%2Fcodebits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeevanjames%2Fcodebits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeevanjames%2Fcodebits/lists"}