How to handle missing or unrecognized MIME types
masterUnlike the older mime@1.x module, mime-types does not provide fallbacks. If a lookup fails or the input is invalid, the functions return false. To provide a default value, use a logical OR operator:
var type = mime.lookup('unrecognized') || 'application/octet-stream';