TexturizR 1.0.2

dotnet add package TexturizR --version 1.0.2                
NuGet\Install-Package TexturizR -Version 1.0.2                
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="TexturizR" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TexturizR --version 1.0.2                
#r "nuget: TexturizR, 1.0.2"                
#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 TexturizR as a Cake Addin
#addin nuget:?package=TexturizR&version=1.0.2

// Install TexturizR as a Cake Tool
#tool nuget:?package=TexturizR&version=1.0.2                

TexturizR

Flexible text transformation library for converting between different cases and structures.

Installing TexturizR

TexturizR can be installed from nuget

Install-Package TexturizR

or using the .NET CLR

dotnet add package TexturizR

Overview

TexturizR uses a fluent builder-style syntax, giving you full control over the transformation process. You can:

  • Convert between various formats (camelCase, PascalCase, kebab-case, snake_case, and more).
  • Control capitalization rules for each word.
  • Specify custom delimiters for output formatting.

If you can imagine a text format, TexturizR can transform it.

Declaring the Current Case or Structure

To begin transforming text, first declare its existing format using one of the following parsing methods:

AsPhrase()

Declares a phrase made up of whitespace-separated words (e.g. "The quick brown fox").

AsCamelCasePhrase()

Declares a phrase where capital letters indicate new words. This works for:

  • camelCase (e.g. "theQuickBrownFox")
  • PascalCase (e.g. "TheQuickBrownFox")

AsDelimitedPhrase(string wordSeparator)

Declares a phrase where words are separated by a specific character.

  • kebab-case (e.g. "the-quick-brown-fox")
  • snake_case (e.g. "the_quick_brown_fox")
  • Custom delimiter (e.g. "the|quick|brown|fox")

Transforming a Phrase

Once you have a phrase builder you can fluently chain calls to configure the transformed text.

Capitalization Rules

Controls which letters in the output phrase will be capitalized.

Capitalize(PhraseCapitalization capitalization)

Can be configured with one of the following values:

  • Default - Keeps the original casing (default).

  • None - Converts all characters to lowercase.

  • EachLetter - Converts all characters to UPPERCASE.

  • EachWord - Capitalizes Each Word Like This

  • FirstWord - Capitalizes Only the first letter of the first word like this

  • TrailingWords: Capitalizes the First Letter Of All Words Except The First Like This

Word Separation

Controls how words are joined in the transformed phrase.

JoinWordsWith(string wordSeparator)

This sets the delimiter to be used when building the transformed string:

  • JoinWordsWith("-") - Converts to kebab-case
  • JoinWordsWith("_") - Converts to snake_case

JoinWords()

Alias for JoinWordsWith(String.Empty). Used for building Camel and Pascal case phrases.

Generating the Final String

ToString()

Call .ToString() to produce the final transformed string.

Examples

Convert camelCase to UPPER_SNAKE_CASE

// Input: "theQuickBrownFox" -> Output: "THE_QUICK_BROWN_FOX".
var upperSnake = "theQuickBrownFox"
    .AsCamelCasePhrase()
    .Capitalize(PhraseCapitalization.EachLetter)
    .JoinWordsWith("_")
    .ToString();

Convert kebab-case to PascalCase

// Input: "the-quick-brown-fox" -> Output: "TheQuickBrownFox".
var pascal = "the-quick-brown-fox"
    .AsDelimitedPhrase("-")
    .Capitalize(PhraseCapitalization.EachWord)
    .JoinWords()
    .ToString();

Why Use TexturizR?

  • Intuitive Fluent API - Chain methods to build transformations naturally.
  • Supports Multiple Formats - Easily switch between camelCase, PascalCase, kebab-case, snake_case, and more.
  • Fully Customizable – Define your own delimiters and capitalization rules.
  • Lightweight & Fast – Built for performance and simplicity.
Product Compatible and additional computed target framework versions.
.NET 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 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.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.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.2 84 3/2/2025
1.0.1 81 3/2/2025