MCPcopy
hub / github.com/rolldown/tsdown / stripExtname

Function stripExtname

src/utils/fs.ts:49–53  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

47}
48
49export function stripExtname(filePath: string): string {
50 const ext = path.extname(filePath)
51 if (!ext.length) return filePath
52 return filePath.slice(0, -ext.length)
53}

Callers 4

fs.test.tsFile · 0.90
resolveObjectEntryFunction · 0.90
resolveArrayEntryFunction · 0.90
getExportNameFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…