lib/MIME.js
function getFromFileNameV1 (filename) {
	var result = mime.lookup(filename);

	// Add charset just in case for some buggy browsers.
	if (result === 'application/javascript' || result === 'application/json' || result === 'text/plain') {
		result += '; charset=UTF-8';
	}

	return result;
}
function getFromFileNameV1 (filename) {
	var result = mime.lookup(filename);

	// Add charset just in case for some buggy browsers.
	if (result === 'application/javascript' || result === 'application/json' || result === 'text/plain') {
		result += '; charset=UTF-8';
	}

	return result;
}
function getFromFileNameV1 ( filename ) { var result = mime . lookup ( filename ) ; // Add charset just in case for some buggy browsers. if ( result === 'application/javascript' || result === 'application/json' || result === 'text/plain' ) { result += '; charset=UTF-8' ; } return result ; }
Use `mime` v1.x to get type.

@param {String} filename can be a full path
@returns {String} mime type
Use mime v1 . x to get type .