NameCaser 0.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package NameCaser --version 0.3.0                
NuGet\Install-Package NameCaser -Version 0.3.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="NameCaser" Version="0.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NameCaser --version 0.3.0                
#r "nuget: NameCaser, 0.3.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.
// Install NameCaser as a Cake Addin
#addin nuget:?package=NameCaser&version=0.3.0

// Install NameCaser as a Cake Tool
#tool nuget:?package=NameCaser&version=0.3.0                

name-caser

Extension methods to convert Pascal casing to other casings

Examples:

using NameCaser;

var simple = "SomeSimpleString";
Console.WriteLine(simple.ToCamelCase());         // someSimpleString
Console.WriteLine(simple.ToSnakeCase());         // some_simple_string
Console.WriteLine(simple.ToKebabCase());         // some-simple-string
Console.WriteLine(simple.ToSpaceCase());         // Some simple string
Console.WriteLine(simple.ToConstantCase());      // SOME_SIMPLE_STRING
Console.WriteLine(simple.ToTrainCase());         // Some-Simple-String

var ioDriver = "IODriver";
Console.WriteLine(ioDriver.ToCamelCase());        // ioDriver
Console.WriteLine(ioDriver.ToSnakeCase());        // io_driver
Console.WriteLine(ioDriver.ToKebabCase());        // io-driver
Console.WriteLine(ioDriver.ToSpaceCase());        // IO driver
Console.WriteLine(ioDriver.ToConstantCase());     // IO_DRIVER
Console.WriteLine(ioDriver.ToTrainCase());        // IO-Driver

var someUTPCable = "SomeUTPCable";
Console.WriteLine(someUTPCable.ToCamelCase());    // someUTPCable
Console.WriteLine(someUTPCable.ToSnakeCase());    // some_utp_cable
Console.WriteLine(someUTPCable.ToKebabCase());    // some-utp-cable
Console.WriteLine(someUTPCable.ToSpaceCase());    // Some UTP cable
Console.WriteLine(someUTPCable.ToConstantCase()); // SOME_UTP_CABLE
Console.WriteLine(someUTPCable.ToTrainCase());    // Some-UTP-Cable

Supports the conversion to the following casings

1. camelCase

Camel Case is actually inspired from animal �Camel�. Where first word will be small letters and from second word, first character will be captialized like camelCase.

Camel Case is often used for property Naming in typescript

2. snake_case

Snake Case is naming with words separated by _ ( underscore ) and all small letters

Snake Case is often used for file Naming

3. kebab-case

Kebab Case is naming with words separated by � ( hyphen ) with all small letters

Kebab Case is often used for CSS naming

4. Space case

Space case is naming with words separated by ' ' ( space ) and all small letters

Space Case is often used auto generating comments

5. CONSTANT_CASE

Constant case is naming with all letters Capitalized but the words are separated by _ ( underscore)

Constant case is often used for constants and macros

6. Train-Case

Train Case is naming with first character of every word of name is Capitalised and words are connected with � ( hyphen ).

Train Case is also often used for file Naming

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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. 
.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.

This package has no dependencies.

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.0 80 5/29/2024
0.4.0 71 5/28/2024
0.3.0 74 5/21/2024
0.2.0 57 5/16/2024
0.1.0 108 4/20/2024

Complete rewrite, which should be faster in most cases and consume less memory.