Masuit.Tools bundles static helpers for encryption, reflection, collections, datetime, networking, files, images, Excel, and other day-to-day .NET chores in compact packages.
Overview
Masuit.Tools, nicknamed 码数吐司, is a C# utility library collecting frequently used static helpers for .NET Framework and .NET Core projects. Packages split between a core build, ASP.NET Core extensions, Excel tooling, and MongoDB helpers.
Documented modules cover validation for emails and IDs, hardware monitoring on Windows, HTML sanitization, compression, distributed short IDs, LINQ expression extensions, download managers, encryption, imaging, watermarking, and calendar calculations including Chinese lunar data.
Optional configuration sections let hosts supply email domain allow or block lists and other AppSettings-driven behavior. Extensive inline examples and per-API documentation support adoption.
Teams reference the NuGet packages directly rather than running a standalone service.
Key features
- String, date, and collection extension methods
- Encryption, hashing, and validation helpers
- Excel import and export via add-on package
- Download manager with concurrent HTTP ranges
- Chinese lunar calendar and numeric conversions
- ASP.NET Core integration package
Use cases
- Share cross-cutting utilities across .NET services
- Add Excel export without bespoke formatting code
- Validate Chinese phone numbers or ID formats