Ana içeriğe geç

Moongazing.Pretty

Version Extensions​

v1.IsGreaterThan(v2);
v1.BumpMinor();

Nullable Extensions​

value.OrThrow();
value.IfHasValue(v => Console.WriteLine(v));

Exception Extensions​

ex.GetFullMessage();
ex.GetStackSummary();

Path Extensions​

path.GetFileName();
path.HasExtension(".json");

HTML Extensions​

html.StripHtml();
html.ContainsHtml();

Color Extensions​

color.ToHex(); // "#FF5733"
color.IsDark();

Math Extensions​

value.Clamp(0, 100);
value.IsBetween(10, 20);

Char Extensions​

'c'.IsVowel(); // true / false
'c'.ToUpper();

Philosophy​

  • Intuitive: Clean method names, minimal surprises.
  • Isolated: Everything lives under Moongazing.Pretty.Extensions.
  • Flexible: Safe defaults, culture-aware where needed.
  • Lightweight: No dependencies. Pure C#.

Testing & Contributions​

We welcome pull requests for improvements and new extension ideas.

Please include unit tests when adding new functionality.


License​

MIT License — see LICENSE.txt for details.


Crafted with care by Moongazing

Packages​

PackageVersionDownloads
Neatly1.0.1532