Devjavu.Nomus 1.0.5

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

๐Ÿ“ฆ Nomus

Easily convert text between different naming styles: UPPERCCASE, lowercase, PascalCase, camelCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, UPPER-KEBAB-CASE, Title Case and Train-Case, and automatically detect the original format.
Ideal for automating naming conversions in .NET projects, code generation, migrations, tools, and utilities.


๐Ÿš€ Features

โœ” Convert from any format to:

  • UPPERCCASE
  • lowercase
  • PascalCase
  • camelCase
  • snake_case
  • SCREAMING_SNAKE_CASE
  • kebab-case
  • UPPER-KEBAB-CASE
  • Title Case
  • Train-Case

โœ” Automatically detects:

  • UPPERCCASE
  • lowercase
  • PascalCase
  • camelCase
  • snake_case
  • SCREAMING_SNAKE_CASE
  • kebab-case
  • UPPER-KEBAB-CASE
  • Title Case
  • Train-Case
  • and mixed cases

โœ” Correct handling of casing and separators
โœ” No external dependencies (Regex only)
โœ” Simple and straightforward API


๐Ÿ“ฅ Installation

dotnet add package Devjavu.Nomus

Or from Visual Studio:

Project โ†’ Manage NuGet Packages โ†’ Browse โ†’ Nomus


โœจ Quick Usage

using Nomus;

// Detect naming style
var detected = Naming.DetectNamingStyle("votesUsers");
// "camelCase"

// PascalCase
var p = Naming.ToPascalCase("user_votes_details");
// UserVotesDetails

// camelCase
var c = Naming.ToCamelCase("UserVotesDetails");
// userVotesDetails

// snake_case
var s = Naming.ToSnakeCase("userVotesDetails");
// user_votes_details

// kebab-case
var k = Naming.ToKebabCase("userVotesDetails");
// user-votes-details

๐Ÿงฉ Available Methods


๐Ÿ” DetectNamingStyle(string input)

Automatically detects the naming convention of the text.

Possible results:

  • "UPPERCCASE"
  • "lowercase"
  • "PascalCase"
  • "camelCase"
  • "snake_case"
  • "SCREAMING_SNAKE_CASE"
  • "kebab-case"
  • "UPPER-KEBAB-CASE"
  • "Title Case"
  • "Train-Case"
  • "Unknown / Mixed"

Examples:

Naming.DetectNamingStyle("UserVotesDetails");    // PascalCase
Naming.DetectNamingStyle("userVotesDetails");    // camelCase
Naming.DetectNamingStyle("user_votes_details");  // snake_case
Naming.DetectNamingStyle("user-votes-details");  // kebab-case
Naming.DetectNamingStyle("votes UsersDetails");  // Unknown / Mixed

๐Ÿ”  ToUpperCase(string input)

Converts from any format to UPPERCASE.


๐Ÿ”ก ToLowerCase(string input)

Converts from any format to lowercase.


๐Ÿงฑ ToPascalCase(string input)

Converts from any format to PascalCase.


๐Ÿช ToCamelCase(string input)

Converts from any format to camelCase.


๐Ÿ ToSnakeCase(string input)

Converts from any format to snake_case.


๐Ÿ๐Ÿ”  ToScreamingSnakeCase(string input)

Converts from any format to SCREAMING_SNAKE_CASE.


๐Ÿ”— ToKebabCase(string input)

Converts from any format to kebab-case.


๐Ÿ”—๐Ÿ”  ToUpperKebabCase(string input)

Converts from any format to UPPER-KEBAB-CASE.


๐Ÿ”ค ToTitleCase(string input)

Converts from any format to Title Case.


๐Ÿš‚ ToTrainCase(string input)

Converts from any format to Title Case.


๐Ÿงช Additional Examples

Naming.ToPascalCase("hello-world");       // HelloWorld
Naming.ToCamelCase("HELLO_WORLD");        // helloWorld
Naming.ToSnakeCase("HelloWorld");         // hello_world
Naming.ToKebabCase("helloWorldTest");     // hello-world-test
Naming.ToTrainCase("helloWorldTest");     // Hello-World-Test

Naming.DetectNamingStyle("MyVariable");   // PascalCase
Naming.DetectNamingStyle("myVariable");   // camelCase
Naming.DetectNamingStyle("my_variable");  // snake_case
Naming.DetectNamingStyle("my-variable");  // kebab-case
Naming.DetectNamingStyle("My Variable");  // Title Case

๐Ÿ—‚ Package Structure

Nomus/
 โ”œโ”€โ”€ Naming.cs
 โ”œโ”€โ”€ README.md
 โ””โ”€โ”€ Nomus.nuspec

๐Ÿ“„ License

This project is licensed under the MIT License, which means you can freely use it in commercial and personal projects.


๐Ÿค Contributing

Contributions are welcome! You can:

  • Report issues
  • Propose improvements
  • Submit PRs

โญ Support the Project

If this package was useful to you, consider leaving a โญ on GitHub or sharing it with other developers.

Product Compatible and additional computed target framework versions.
.NET 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 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.
  • net8.0

    • 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.5 456 12/9/2025
1.0.4 440 12/9/2025
1.0.2 208 12/5/2025
1.0.0 394 12/5/2025