Aspireng.Text 1.1.3

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

Aspireng.Text

A comprehensive .NET library providing advanced text manipulation, string handling, and random string generation utilities. This library is part of the Aspireng framework targeting .NET 9.

Overview

Aspireng.Text offers a rich set of utilities for string operations, including:

  • Advanced string manipulation and extensions
  • Random string generation with configurable parameters
  • Case-sensitive and case-insensitive string operations
  • String type categorization and validation
  • Secure string handling

Installation

Install via NuGet Package Manager:

dotnet add package Aspireng.Text

Features

String Extensions

using Aspireng.Text;

// Case-insensitive operations
"Hello World".ContainsCI("WORLD");     // true
"Hello World".StartsWithCI("HELLO");   // true
"Hello World".EndsWithCI("world");     // true

// String manipulation
"HelloWorld".AddSpacesToCamelCase();   // "Hello World"
"path/file".EnsurePrefix("base/");     // "base/path/file"
"config.json".EnsurePostfix(".bak");   // "config.json.bak"

// Security
string password = "myPassword";
var secureString = password.ToSecureString();

// String validation
"123.456".IsNumeric();                 // true
"pattern".IsValidRegEx();              // true

Random String Generation

using Aspireng.Text;

// Generate single random string
var password = RandomStringGenerator.Generate(
    StringTypes.Alphabet | StringTypes.Numbers,
    maxLength: 12
);

// Generate multiple random strings
var passwords = RandomStringGenerator.GenerateMultiple(
    StringTypes.Alphabet | StringTypes.Numbers | StringTypes.Symbols,
    count: 5,
    maxLength: 16,
    randomLength: true
);

String Type Categorization

using Aspireng.Text;

string input = "Test123!";
bool hasRequiredChars = input.Contains(
    StringTypes.UppercaseAlphabet | 
    StringTypes.LowercaseAlphabet | 
    StringTypes.Numbers | 
    StringTypes.Symbols
);

String Types

The library supports various string type categorizations through the StringTypes enum:

  • None (0)
  • Alphabet (1)
  • Numbers (2)
  • Symbols (4)
  • UppercaseAlphabet (5)
  • LowercaseAlphabet (6)

Requirements

  • .NET 9.0 or higher

License

Licensed under the Nova Globen AB license agreement. Contact info@nova-globen.se for licensing details.

Contributing

This project is maintained by Nova Globen AB. For questions or support, please contact info@nova-globen.se.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Aspireng.Text:

Package Downloads
Aspireng.IO

Package Description

Aspireng.Data

A comprehensive .NET 9 data access and service layer framework. Features include unified data store abstractions (SQL/File-based), CRUD service patterns with caching, attribute-driven data encryption, dynamic SQL operations, and extensive data manipulation utilities. Supports multiple database providers (SQL Server, SQLite, ODBC) with built-in security, logging, and performance optimizations.

Aspireng.Logging

Package Description

Aspireng.Csv

A high-performance CSV reading and writing library for .NET 9. Features include strongly-typed record mapping, custom type conversions, header management, configurable delimiters, dynamic property support, and async operations. Supports RFC 4180 compliance, escape modes, and extensive configuration options for field validation and transformation.

Aspireng.Net

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.3 78 8/22/2025
1.1.2 83 8/22/2025
1.1.1 82 8/22/2025
1.0.9 84 8/22/2025
1.0.7 98 8/22/2025
1.0.6 136 8/21/2025
1.0.5 143 8/20/2025