MCPcopy Create free account
hub / github.com/cacjs/cac / getFileName

Function getFileName

src/utils.ts:151–154  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

149}
150
151export function getFileName(input: string): string {
152 const m = /([^\\/]+)$/.exec(input)
153 return m ? m[1] : ''
154}
155
156export function camelcaseOptionName(name: string): string {
157 // Camelcase the option name

Callers 1

parseMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected