media-type
Parse and validate RFC6838/RFC9694 media types, anything from 'text/plain' to 'application/vnd.company.app.entity-v2+xml;charset=utf8'
validate-image-type
Check the image file of a Buffer/Uint8Array that matched expected image MIME-type.
mime-detect
Detect mime type and encoding (aka Content-Type) from buffer, file content and filename.