MCPcopy Create free account
hub / github.com/xerrors/Yuxi / getFileExtensionLabel

Function getFileExtensionLabel

web/src/utils/file_utils.js:37–40  ·  view source on GitHub ↗
(pathOrName)

Source from the content-addressed store, hash-verified

35}
36
37export const getFileExtensionLabel = (pathOrName) => {
38 const extension = getPreviewFileExtension(pathOrName).replace(/^\./, '')
39 return extension ? extension.toUpperCase() : ''
40}
41
42export const getMimeSubtypeLabel = (mimeType) => {
43 const subtype = String(mimeType || '')

Callers 1

Calls 1

getPreviewFileExtensionFunction · 0.90

Tested by

no test coverage detected