mime-matcher

Utility function checking if string is mime type from allowed range

mime-detect

Detect mime type and encoding (aka Content-Type) from buffer, file content and filename.