media-type

Parse and validate RFC6838/RFC9694 media types, anything from 'text/plain' to 'application/vnd.company.app.entity-v2+xml;charset=utf8'

mime-detect

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