Devjavu.Nomus
1.0.5
dotnet add package Devjavu.Nomus --version 1.0.5
NuGet\Install-Package Devjavu.Nomus -Version 1.0.5
<PackageReference Include="Devjavu.Nomus" Version="1.0.5" />
<PackageVersion Include="Devjavu.Nomus" Version="1.0.5" />
<PackageReference Include="Devjavu.Nomus" />
paket add Devjavu.Nomus --version 1.0.5
#r "nuget: Devjavu.Nomus, 1.0.5"
#:package Devjavu.Nomus@1.0.5
#addin nuget:?package=Devjavu.Nomus&version=1.0.5
#tool nuget:?package=Devjavu.Nomus&version=1.0.5
๐ฆ 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 | Versions 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. |
-
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.