CodeAssist 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CodeAssist --version 1.0.0
                    
NuGet\Install-Package CodeAssist -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeAssist" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeAssist" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="CodeAssist" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeAssist --version 1.0.0
                    
#r "nuget: CodeAssist, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CodeAssist@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeAssist&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=CodeAssist&version=1.0.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 347 3/10/2023
1.0.0 299 3/8/2023