Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/jshttp/mime-types
/ functions
Functions
7 in github.com/jshttp/mime-types
⨍
Functions
7
◇
Types & classes
0
↓ 1 callers
Function
_preferredType
(ext, type0, type1)
index.js:187
↓ 1 callers
Function
_preferredTypeLegacy
(ext, type0, type1)
index.js:195
↓ 1 callers
Function
populateMaps
* Populate the extensions and types maps. * @private
index.js:154
Function
charset
* Get the default charset for a MIME type. * * @param {string} type * @return {false|string}
index.js:51
Function
contentType
* Create a full Content-Type header given a MIME type or extension. * * @param {string} str * @return {false|string}
index.js:79
Function
extension
* Get the default extension for a MIME type. * * @param {string} type * @return {false|string}
index.js:107
Function
lookup
* Lookup the MIME type for a file path/extension. * * @param {string} path * @return {false|string}
index.js:132