lib/MIME.js
function getFromFileNameV2 (filename) {
	var result = mime.getType(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 getFromFileNameV2 (filename) {
	var result = mime.getType(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 getFromFileNameV2 ( filename ) { var result = mime . getType ( 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` v2.x to get type.

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