ktsu.CaseConverter 1.3.31

Prefix Reserved
dotnet add package ktsu.CaseConverter --version 1.3.31
                    
NuGet\Install-Package ktsu.CaseConverter -Version 1.3.31
                    
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="ktsu.CaseConverter" Version="1.3.31" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ktsu.CaseConverter" Version="1.3.31" />
                    
Directory.Packages.props
<PackageReference Include="ktsu.CaseConverter" />
                    
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 ktsu.CaseConverter --version 1.3.31
                    
#r "nuget: ktsu.CaseConverter, 1.3.31"
                    
#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 ktsu.CaseConverter@1.3.31
                    
#: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=ktsu.CaseConverter&version=1.3.31
                    
Install as a Cake Addin
#tool nuget:?package=ktsu.CaseConverter&version=1.3.31
                    
Install as a Cake Tool

ktsu.CaseConverter

A library with extension methods to convert strings between common casings used in code.

License NuGet Version NuGet Version NuGet Downloads GitHub commit activity GitHub contributors GitHub Actions Workflow Status

Introduction

CaseConverter is a lightweight .NET library that provides a set of extension methods for converting strings between various case styles commonly used in programming. Whether you need to transform identifiers between different naming conventions or format text for display, CaseConverter makes these operations simple and efficient.

Features

  • ToTitleCase: Converts text to Title Case (Each Word Capitalized)
  • ToPascalCase: Converts text to PascalCase (CapitalizedWords)
  • ToCamelCase: Converts text to camelCase (firstWordLowerCaseRestCapitalized)
  • ToSnakeCase: Converts text to snake_case (lowercase_with_underscores)
  • ToKebabCase: Converts text to kebab-case (lowercase-with-hyphens)
  • ToMacroCase: Converts text to MACRO_CASE (UPPERCASE_WITH_UNDERSCORES)
  • ToUppercaseFirstChar: Converts only the first character to uppercase (Uppercasefirstchar)
  • ToLowercaseFirstChar: Converts only the first character to lowercase (lowercaseFirstChar)

Installation

Package Manager Console

Install-Package ktsu.CaseConverter

.NET CLI

dotnet add package ktsu.CaseConverter

Package Reference

<PackageReference Include="ktsu.CaseConverter" Version="x.y.z" />

Usage Examples

Basic Example

using ktsu.CaseConverter;

string original = "This is a test string";

// Convert to different cases
string pascalCase = original.ToPascalCase(); // "ThisIsATestString"
string camelCase = original.ToCamelCase();   // "thisIsATestString"
string snakeCase = original.ToSnakeCase();   // "this_is_a_test_string"
string kebabCase = original.ToKebabCase();   // "this-is-a-test-string"
string macroCase = original.ToMacroCase();   // "THIS_IS_A_TEST_STRING"

Console.WriteLine(pascalCase);
Console.WriteLine(camelCase);
Console.WriteLine(snakeCase);
Console.WriteLine(kebabCase);
Console.WriteLine(macroCase);

Advanced Usage

// Working with code identifiers
string variableName = "customer_order_details";
string className = variableName.ToPascalCase(); // "CustomerOrderDetails"
string propertyName = variableName.ToCamelCase(); // "customerOrderDetails"
string constantName = variableName.ToMacroCase(); // "CUSTOMER_ORDER_DETAILS"

// Handling acronyms and special cases
string withAcronym = "API_response_URL";
string pascalWithAcronym = withAcronym.ToPascalCase(); // "ApiResponseUrl"

// First character transformations
string sentence = "lorem ipsum dolor sit amet";
string capitalized = sentence.ToUppercaseFirstChar(); // "Lorem ipsum dolor sit amet"

API Reference

Extension Methods

Method Parameters Return Type Description
ToTitleCase() None string Converts string to Title Case
ToPascalCase() None string Converts string to PascalCase
ToCamelCase() None string Converts string to camelCase
ToSnakeCase() None string Converts string to snake_case
ToKebabCase() None string Converts string to kebab-case
ToMacroCase() None string Converts string to MACRO_CASE
ToUppercaseFirstChar() None string Capitalizes only the first character
ToLowercaseFirstChar() None string Makes only the first character lowercase

Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Please make sure to update tests as appropriate and adhere to the existing coding style.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  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 is compatible.  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 is compatible.  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 is compatible.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

  • .NETStandard 2.1

    • No dependencies.
  • net10.0

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on ktsu.CaseConverter:

Package Downloads
ktsu.AppDataStorage

A .NET library for persistent application data storage using JSON serialization. Provides a simple inherit-and-use pattern with automatic file management, thread-safe operations, debounced saves, backup recovery, and singleton access. Stores data in the user's app data folder with support for custom subdirectories and file names.

ktsu.ImGuiWidgets

A library of custom widgets using ImGui.NET and utilities to enhance ImGui-based applications.

ktsu.ImGuiPopups

A library for custom popups using ImGui.NET.

ktsu.ImGuiCredentialPopups

A .NET library providing ready-made Dear ImGui modal dialogs for collecting credentials. Ships username/password and token popups built on a shared CredentialPopup base, with masked input, automatic keyboard focus, and confirmation callbacks that hand back a ktsu.CredentialCache credential ready to store or use.

ktsu.ImGui.Popups

A professional library for modal dialogs and popup components in ImGui.NET, providing message boxes, input prompts with validation (string, int, float), searchable selection lists with type-safe generics, and an advanced filesystem browser with open/save modes, directory navigation, and pattern filtering support.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.31 0 8/20/2026
1.3.30 126 8/19/2026
1.3.29 246 8/18/2026
1.3.28 263 8/17/2026
1.3.27 1,209 8/11/2026
1.3.26 231 8/6/2026
1.3.25 101 8/6/2026
1.3.24 268 8/5/2026
1.3.23 589 7/29/2026
1.3.22 923 7/22/2026
1.3.21 528 7/16/2026
1.3.20 247 7/15/2026
1.3.19 234 7/14/2026
1.3.18 862 7/9/2026
1.3.17 1,528 7/2/2026
1.3.16 419 7/1/2026
1.3.15 355 6/30/2026
1.3.14 626 6/28/2026
1.3.13 147 6/28/2026
1.3.13-pre.1 97 2/17/2026
Loading failed

## v1.3.31 (patch)

Changes since v1.3.30:

- Bump the ktsu group with 9 updates ([@dependabot[bot]](https://github.com/dependabot[bot]))