validate-image-type
Check the image file of a Buffer/Uint8Array that matched expected image MIME-type.
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.