()
| 1 | /** Generate a random adjective-noun name for bump files */ |
| 2 | export function randomName(): string { |
| 3 | const pick = <T>(arr: T[]) => arr[Math.floor(Math.random() * arr.length)]!; |
| 4 | return `${pick(ADJECTIVES)}-${pick(ADJECTIVES)}-${pick(NOUNS)}`; |
| 5 | } |
| 6 | |
| 7 | /** Sanitize a user-provided name into a valid filename slug */ |
| 8 | export function slugify(name: string): string { |
no test coverage detected
searching dependent graphs…