MCPcopy Create free account
hub / github.com/TanStack/cli / extnamePath

Function extnamePath

packages/create/src/edge-path.ts:69–77  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

67}
68
69export function extnamePath(path: string): string {
70 const basename = basenamePath(path)
71 const index = basename.lastIndexOf('.')
72 if (index <= 0) {
73 return ''
74 }
75
76 return basename.slice(index)
77}

Callers 2

isBinaryFileFunction · 0.85
relativePathFunction · 0.85

Calls 1

basenamePathFunction · 0.85

Tested by

no test coverage detected