CodeAssist 1.0.0
See the version list below for details.
dotnet add package CodeAssist --version 1.0.0
NuGet\Install-Package CodeAssist -Version 1.0.0
<PackageReference Include="CodeAssist" Version="1.0.0" />
<PackageVersion Include="CodeAssist" Version="1.0.0" />
<PackageReference Include="CodeAssist" />
paket add CodeAssist --version 1.0.0
#r "nuget: CodeAssist, 1.0.0"
#:package CodeAssist@1.0.0
#addin nuget:?package=CodeAssist&version=1.0.0
#tool nuget:?package=CodeAssist&version=1.0.0
CodeAssist
CodeAssist is a .NET library that provides extension methods for strings that are frequently used by developers. With CodeAssist, you can easily access these extension methods without having to write them from scratch every time you need them.
Installation
To use CodeAssist in your .NET project, you can install it via NuGet:
PM> Install-Package CodeAssist
Usage
- ToTitleCase(): An extension method that converts a string to title case (the first letter of each word is capitalized)
- ToCamelCase(): An extension method that converts a string to camel case.
- ToPascalCase(): An extension method that converts a string to Pascal case.
- ToSafeFileName(): An extension method that removes any invalid characters from a string and replaces them with an underscore, making it safe to use as a file name.
- ToSlug(): An extension method that converts a string to a URL-safe "slug" format, typically used for creating unique URLs for blog posts or articles.
- ToInteger(): An extension method that converts a string to integer.
- Truncate(int length, bool addElipsis): An extension method that truncates a string to a specified length and optionally adds an ellipsis at the end.
- RemoveDiacritics(): An extension method that removes any diacritical marks (accents) from a string.
- RemoveHtmlTags(): An extension method that removes all HTML tags from a string.
- ExtractUrls(): An extension method that extracts all URLs from a string.
- IsValidEmail): An extension method that validates an email address based on standard email format.
- IsAlpha(): An extension method that checks if a string contains only alphabetic characters.
- IsValidBase64(): An extension method that checks if a string is a valid base64 encoded string.
- and more...
To use these extension methods, simply include the CodeAssist namespace in your C# file:
using CodeAssist;
string myHtmlString = "<b><i>Some text</i></b>";
bool cleanString = myHtmlString.RemoveHtmlTags();
Contributing
If you find a bug or have a feature request, please create an issue on the GitHub repository. Pull requests are also welcome!
License
CodeAssist is released under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net7.0
- Newtonsoft.Json (>= 13.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.