dirSegment

tcmts.cli.files.dirSegment · #ihgk7d6k · term · runs anywhere

A namespace segment for a directory, as the mirror names them (src directories don't count).

export const dirSegment = (dir: string): string => dir.replace(/[^\w$]/g, "_").replace(/^(\d)/, "_$1")

used by