DevUtilsTools 1.0.0

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

DevTools

NuGet  GitHub stars  GitHub forks  GitHub issues  GitHub license 

DevTools is a lightweight, all-in-one C# utility library that makes everyday development tasks faster and simpler. It combines 50+ methods per utility class for string manipulation, dates, math, collections, file I/O, randomization, URLs, JSON, reflection, processes, crypto, validation, and more—all in a single package.


Features

✅ String Utilities

  • Convert between CamelCase, PascalCase, snake_case, Title Case
  • Reverse, truncate, repeat, remove whitespace, digits, and special characters
  • Palindrome checks, word counts, substring helpers, regex helpers
  • 50+ advanced string manipulation methods

✅ Time Utilities

  • Current Unix timestamp, time ago formatting
  • Start/End of day, month, year
  • Add/Subtract days, hours
  • Weekend/Weekday checks, days until, seconds since
  • 50+ advanced time/date helpers

✅ Math Utilities

  • Clamp, Lerp, RandomInt, Factorial, IsPrime
  • GCD, LCM, Radians/Degrees conversion
  • RoundToNearest, Percentages, Randomization helpers
  • 100+ mathematical helper methods

✅ Collection Utilities

  • Shuffle, chunk, distinct by, remove nulls
  • Safe first/last, concat, reverse, to dictionary
  • 50+ collection manipulation helpers

✅ File Utilities

  • Safe read/write/copy/delete, file existence checks
  • Read/Write JSON or text safely
  • 50+ file handling methods

✅ Random Utilities

  • Random string, int, bool, double, enum, array element
  • Secure random key generation
  • 50+ randomization helpers

✅ Url Utilities

  • Validation, domain/subdomain/TLD extraction
  • Query string manipulation, fragment handling
  • Encoding/decoding, URL normalization, scheme modification
  • 50+ URL utilities

✅ Json Utilities

  • Serialize/Deserialize generic and non-generic
  • Pretty print, minify, merge, deep merge
  • Safe property retrieval, case formatting
  • 50+ JSON helpers

✅ Other Utilities

  • Reflection, Process management, Crypto, Validation, Logger
  • Color manipulation, Console helpers, Network utilities
  • Enum helpers, Conversion, Threading, Date helpers

Installation

Install via NuGet:

Install-Package DevUtilsTools

Or via .NET CLI:

dotnet add package DevUtilsTools

Usage Examples

String Helpers

using DevTools;

string str = "HelloWorld";
Console.WriteLine(str.ToSnakeCase()); // hello_world
Console.WriteLine(str.IsPalindrome()); // false

Time Helpers

var unix = TimeUtils.CurrentUnixTimestamp();
var ago = TimeUtils.TimeAgo(DateTime.UtcNow.AddHours(-5));

Math Helpers

int clamped = MathUtils.Clamp(15, 0, 10); // 10
double radians = MathUtils.DegreesToRadians(90); // 1.5707...

File Helpers

FileUtils.WriteAllTextSafe("test.txt", "Hello DevTools!");
var content = FileUtils.ReadAllTextSafe("test.txt");

Json Helpers

string json = JsonUtils.Serialize(new { Name = "DevTools", Version = 1 });
var obj = JsonUtils.Deserialize<Dictionary<string, object>>(json);

Stats

Class Methods
StringUtils 50+
TimeUtils 50+
MathUtils 100+
CollectionUtils 50+
FileUtils 50+
RandomUtils 50+
UrlUtils 50+
JsonUtils 50+
ReflectionUtils 10+
ProcessUtils 10+
CryptoUtils 10+
ValidationUtils 10+
LoggerUtils 10+
ColorUtils 10+
ConsoleUtils 10+
NetworkUtils 10+
EnumUtils 10+
ConversionUtils 10+
ThreadingUtils 10+

Total methods: 600+ and growing!


Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a new branch for your feature/fix
  3. Submit a pull request

DevTools — a one-stop utility library for C# developers, saving hundreds of lines of boilerplate code every day.

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.
  • net9.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.0 94 2/13/2026