Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/broofa/mime
/ functions
Functions
12 in github.com/broofa/mime
⨍
Functions
12
◇
Types & classes
2
↓ 4 callers
Method
getType
* Get mime type associated with an extension
src/Mime.ts:73
↓ 3 callers
Method
_freeze
()
src/Mime.ts:120
↓ 3 callers
Method
getExtension
* Get default file extension associated with a mime type
src/Mime.ts:94
↓ 2 callers
Method
define
* Define mimetype -> extension mappings. Each key is a mime-type that maps * to an array of extensions associated with the type. The first extens
src/Mime.ts:26
↓ 1 callers
Method
_getTestState
()
src/Mime.ts:131
↓ 1 callers
Method
getAllExtensions
* Get all file extensions associated with a mime type
src/Mime.ts:108
↓ 1 callers
Function
main
()
scripts/build.ts:120
↓ 1 callers
Function
normalizeTypes
(types: MimeDatabase)
scripts/build.ts:37
↓ 1 callers
Function
testGetExtension
(t, mime, tests)
test/test_util.js:13
↓ 1 callers
Function
testGetType
(t, mime, tests)
test/test_util.js:3
↓ 1 callers
Function
writeTypesFile
(name: string, types: Record<string, string[]>)
scripts/build.ts:103
Method
constructor
(...args: TypeMap[])
src/Mime.ts:8