Devjavu.Nomus
1.0.0
See the version list below for details.
dotnet add package Devjavu.Nomus --version 1.0.0
NuGet\Install-Package Devjavu.Nomus -Version 1.0.0
<PackageReference Include="Devjavu.Nomus" Version="1.0.0" />
<PackageVersion Include="Devjavu.Nomus" Version="1.0.0" />
<PackageReference Include="Devjavu.Nomus" />
paket add Devjavu.Nomus --version 1.0.0
#r "nuget: Devjavu.Nomus, 1.0.0"
#:package Devjavu.Nomus@1.0.0
#addin nuget:?package=Devjavu.Nomus&version=1.0.0
#tool nuget:?package=Devjavu.Nomus&version=1.0.0
๐ฆ Nomus
Easily convert text between different naming styles: UPPERCCASE, lowercase, PascalCase, camelCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, UPPER-KEBAB-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
โ Automatically detects:
- UPPERCCASE
- lowercase
- PascalCase
- camelCase
- snake_case
- SCREAMING_SNAKE_CASE
- kebab-case
- UPPER-KEBAB-CASE
- and mixed cases
โ Correct handling of casing and separators
โ No external dependencies (Regex only)
โ Simple and straightforward API
๐ฅ Installation
dotnet add package 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""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
๐ 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.
๐ ToKebabCase(string input)
Converts from any format to kebab-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.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.