Kamando.FastDevUtils 1.0.0

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

FastDevUtils - C# Utility Library Overview FastDevUtils is a comprehensive collection of utility classes designed to speed up C# development by providing commonly needed functionality in an easy-to-use package. The library includes utilities for API responses, file operations, date/time manipulation, string operations, password handling, and much more.

Installation Install via NuGet:

bash dotnet add package Kamando.FastDevUtils Features

  1. ApiResponse.cs A standardized way to format API responses with:

Success/failure status

Data payload

Error messages

Status codes

Pagination support

Timestamping

Example:

csharp // Success response return ApiResponse<User>.Ok(user, "User retrieved successfully");

// Error response return ApiResponse<User>.NotFound("User not found"); 2. APIUtils.cs HTTP client utilities for making API calls with:

GET, POST, PUT, PATCH, DELETE methods

Authentication support

Error handling

Example:

csharp var data = await APIUtils.GetData<List<User>>("https://api.example.com/users"); 3. ClaimsPrincipalUtils.cs Extensions for working with ClaimsPrincipal:

Get user claims (email, phone, roles, etc.)

Check permissions

Get user metadata

Example:

csharp var userId = User.GetUserId(); var roles = User.GetRoles(); 4. CollectionUtils.cs Extensions for collections:

Null/empty checks

Shuffling

Chunking

String joining

Example:

csharp var shuffled = myList.Shuffle(); var chunks = myList.Chunk(10); 5. DateUtils.cs Comprehensive date/time utilities:

Formatting

Date calculations

Business day calculations

Age calculations

Relative time strings

Example:

csharp var formatted = DateTime.Now.DateTimeFormatting(); var age = birthDate.CalculateAge(); 6. EnumUtils.cs Enum manipulation utilities:

Get all names/values

Safe parsing

Example:

csharp var values = EnumUtils.GetEnumValues<MyEnum>(); 7. ExportToExcelORPdfUtils.cs Export data to Excel or PDF:

Supports lists of objects

Automatic header generation

CSV and PDF formats

Example:

csharp var excelBytes = ExportToExcelORPdfUtils.ExportToExcelGetBytes(users); var pdfBytes = ExportToExcelORPdfUtils.ExportToPdf(users); 8. FileUtils.cs File operations:

Read/write files

Check file existence

Get file size

Validate file types

Example:

csharp FileUtils.EnsureDirectoryExists(path); var content = FileUtils.ReadFile(filePath); 9. JsonUtils.cs JSON serialization/deserialization:

Simple API

Validation

Example:

csharp var json = JsonUtils.Serialize(myObject); var obj = JsonUtils.Deserialize<MyClass>(json); 10. LoggerUtils.cs Logging utilities with:

Multiple log levels

File logging

Elasticsearch support

Structured logging

Example:

csharp Logger.Error("Something went wrong", exception); Logger.Info("Process completed"); 11. PagingUtils.cs Pagination utilities:

IQueryable and IEnumerable support

Automatic page calculation

Example:

csharp var pagedResult = query.ToPagedResult(pageNumber, pageSize); 12. PasswordUtils.cs Secure password handling:

Multiple hashing algorithms (PBKDF2, Argon2, BCrypt)

Verification

Legacy SHA256 support

Example:

csharp var hash = PasswordUtils.HashArgon2(password); var isValid = PasswordUtils.VerifyArgon2(password, hash); 13. RandomGenerator.cs Random value generation:

Numeric codes

Secure passwords

Example:

csharp var code = RandomGenerator.GenerateNumericCode(6); var password = RandomGenerator.GeneratePassword(12); 14. StringUtils.cs Comprehensive string utilities:

Validation (email, phone, etc.)

Formatting (title case, slug, etc.)

Encryption (AES)

Base64 encoding

Number to words conversion

Example:

csharp var isValid = email.IsEmail(); var slug = title.ToSlug(); var encrypted = text.EncryptAES(key); 15. UniversalFileUploader.cs File upload handling:

MIME type validation

Size limits

Automatic folder organization

Versioning

Example:

csharp var (publicPath, filePath) = await UniversalFileUploader.UploadAsync(file, rootPath); 16. ValidationUtils.cs Common validation checks:

Email

Phone

Numeric

Password strength

Example:

csharp var isValid = ValidationUtils.IsValidEmail(email); License This project is licensed under the terms of the license specified in the License.txt file.

Contributing Contributions are welcome! Please open an issue or submit a pull request.

Support For support or questions, please open an issue on the project repository.

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

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.0 142 7/17/2025