Kamando.FastDevUtils
1.0.0
dotnet add package Kamando.FastDevUtils --version 1.0.0
NuGet\Install-Package Kamando.FastDevUtils -Version 1.0.0
<PackageReference Include="Kamando.FastDevUtils" Version="1.0.0" />
<PackageVersion Include="Kamando.FastDevUtils" Version="1.0.0" />
<PackageReference Include="Kamando.FastDevUtils" />
paket add Kamando.FastDevUtils --version 1.0.0
#r "nuget: Kamando.FastDevUtils, 1.0.0"
#:package Kamando.FastDevUtils@1.0.0
#addin nuget:?package=Kamando.FastDevUtils&version=1.0.0
#tool nuget:?package=Kamando.FastDevUtils&version=1.0.0
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
- 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:
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 | 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
- BCrypt.Net-Next (>= 4.0.3)
- Isopoh.Cryptography.Argon2 (>= 2.0.0)
- itext (>= 9.2.0)
- libphonenumber-csharp (>= 9.0.9)
- Microsoft.AspNetCore.Http.Features (>= 5.0.17)
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 4.3.0)
- Serilog.Enrichers.Environment (>= 3.0.1)
- Serilog.Sinks.Elasticsearch (>= 9.0.3)
- Serilog.Sinks.File (>= 7.0.0)
- Serilog.Sinks.RollingFile (>= 3.3.0)
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 |