MCPcopy Create free account
hub / github.com/arktypeio/arktype / flagOf

Function flagOf

ark/aot/cli.ts:78–79  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

76)
77
78const flagOf = (name: string) =>
79 name.replace(/[A-Z]/g, char => `-${char.toLowerCase()}`)
80
81const here = dirname(fileURLToPath(import.meta.url))
82const aotRoot = existsSync(join(here, "package.json")) ? here : dirname(here)

Callers 1

cli.tsFile · 0.70

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected