Neatly is a lightweight, extensible, and developer-friendly extension library for formatting, parsing, and enhancing value presentation in .NET applications.
$ dotnet add package Neatlyv1.IsGreaterThan(v2);
v1.BumpMinor();
value.OrThrow();
value.IfHasValue(v => Console.WriteLine(v));
ex.GetFullMessage();
ex.GetStackSummary();
path.GetFileName();
path.HasExtension(".json");
html.StripHtml();
html.ContainsHtml();
color.ToHex(); // "#FF5733"
color.IsDark();
value.Clamp(0, 100);
value.IsBetween(10, 20);
'c'.IsVowel(); // true / false
'c'.ToUpper();
Moongazing.Neatly.Extensions.We welcome pull requests for improvements and new extension ideas.
Please include unit tests when adding new functionality.
MIT License — see LICENSE.txt for details.
Crafted with care by Moongazing ☕