lib/mimeType.js
function mimeType( path ) {
	var extension = path.replace( /.*[./\\]/ , '' ).toLowerCase() ;

	if ( ! mimeType.extension[ extension ] ) {
		// default MIME type, when nothing is found
		return 'application/octet-stream' ;
	}

	return mimeType.extension[ extension ] ;
}
function mimeType( path ) {
	var extension = path.replace( /.*[./\\]/ , '' ).toLowerCase() ;

	if ( ! mimeType.extension[ extension ] ) {
		// default MIME type, when nothing is found
		return 'application/octet-stream' ;
	}

	return mimeType.extension[ extension ] ;
}
function mimeType ( path ) { var extension = path . replace ( / .*[./\\] / , '' ) . toLowerCase ( ) ; if ( ! mimeType . extension [ extension ] ) { // default MIME type, when nothing is found return 'application/octet-stream' ; } return mimeType . extension [ extension ] ; }
MIME types by extension, for most common files
MIME types by extension for most common files