(input: string)
| 61 | } |
| 62 | |
| 63 | export function validateName(input: string): true | string { |
| 64 | return !validateNpmPackageName(input).validForNewPackages |
| 65 | ? 'Name should be in-kebab-case (for npm)' |
| 66 | : existsSync(input) |
| 67 | ? `The "${input}" path already exists in this directory.` |
| 68 | : true; |
| 69 | } |
| 70 | |
| 71 | export function getIntro(columns: number | undefined): string { |
| 72 | const ascii = ` |
no outgoing calls
no test coverage detected