The ultimate file-extension & mime-type library with over 14,000+ signatures. Quickly detect extensions & mime types from a stream or byte array using magic numbers (file headers) and magic words. A default signature library is included and can be expanded using...
Constants for (almost) all MIME types and method to determine MIME type from a file name.
Contains just over 1000 mime types.
The Dictionary is generated from the jshttp/mime-db db.json file.
Works similar to .NET's System.Web.MimeMapping.GetMimeMapping.
It aggregates data from the following...
Library that provides basic abstraction for Internet Content Type, and basic encodings and decodings. This includes handling and parsing of common data types, text, JSON, CSV, binary data and multi-part content, forms, etc.
Implements an option type (Strilanc.Value.May<T>) that encourages usage based on pattern matching rather than ForceGetValue. Also includes utility methods for producing, consuming and transforming May<T>.
Note on null: May<T> treats null like any other value. May.NoValue is distinct from null, and...