Aspireng.Text
1.1.3
dotnet add package Aspireng.Text --version 1.1.3
NuGet\Install-Package Aspireng.Text -Version 1.1.3
<PackageReference Include="Aspireng.Text" Version="1.1.3" />
<PackageVersion Include="Aspireng.Text" Version="1.1.3" />
<PackageReference Include="Aspireng.Text" />
paket add Aspireng.Text --version 1.1.3
#r "nuget: Aspireng.Text, 1.1.3"
#:package Aspireng.Text@1.1.3
#addin nuget:?package=Aspireng.Text&version=1.1.3
#tool nuget:?package=Aspireng.Text&version=1.1.3
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 | Versions 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. |
-
net9.0
- Aspireng.Collections (>= 1.1.3)
- Aspireng.Constants (>= 1.1.3)
- Microsoft.SourceLink.GitHub (>= 8.0.0)
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.