MCPcopy
hub / github.com/google/zx / normalizeExt

Function normalizeExt

src/cli.ts:275–277  ·  view source on GitHub ↗
(ext?: string)

Source from the content-addressed store, hash-verified

273}
274
275export function normalizeExt(ext?: string): string | undefined {
276 return ext ? path.parse(`foo.${ext}`).ext : ext
277}
278
279// prettier-ignore
280function getFilepath(cwd = '.', name = 'zx', _ext?: string): string {

Callers 2

cli.test.jsFile · 0.85
mainFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…