MCPcopy
hub / github.com/rollup/rollup / extname

Function extname

browser/src/path.ts:33–36  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

31}
32
33export function extname(path: string): string {
34 const match = EXTNAME_REGEX.exec(basename(path)!);
35 return match ? match[0] : '';
36}
37
38export function join(...segments: string[]): string {
39 const joined = segments.join('/');

Callers 5

basenameMethod · 0.90
generateAssetFileNameFunction · 0.90
logMissingExportFunction · 0.90
getAliasNameFunction · 0.90

Calls 1

basenameFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…