(columns: number | undefined)
| 69 | } |
| 70 | |
| 71 | export function getIntro(columns: number | undefined): string { |
| 72 | const ascii = ` |
| 73 | _ _ _ _ _ |
| 74 | | |_ _ _ _ __ ___ ___ ___ _ __(_)_ __ | |_ ___| |_ __ _ _ __| |_ ___ _ __ |
| 75 | | __| | | | '_ \\ / _ \\/ __|/ __| '__| | '_ \\| __|____/ __| __/ _\` | '__| __/ _ \\ '__| |
| 76 | | |_| |_| | |_) | __/\\__ \\ (__| | | | |_) | ||_____\\__ \\ || (_| | | | || __/ | |
| 77 | \\__|\\__, | .__/ \\___||___/\\___|_| |_| .__/ \\__| |___/\\__\\__,_|_| \\__\\___|_| |
| 78 | |___/|_| |_| |
| 79 | `; |
| 80 | |
| 81 | const asciiSmaller = ` |
| 82 | _ _ _ _ _ |
| 83 | | |_ _ _ _ __ ___ ___ __ _ _(_)_ __| |_ ___ __| |_ __ _ _ _| |_ ___ _ _ |
| 84 | | _| || | '_ \\/ -_|_-</ _| '_| | '_ \\ _|___(_-< _/ _\` | '_| _/ -_) '_| |
| 85 | \\__|\\_, | .__/\\___/__/\\__|_| |_| .__/\\__| /__/\\__\\__,_|_| \\__\\___|_| |
| 86 | |__/|_| |_| |
| 87 | `; |
| 88 | |
| 89 | return columns && columns >= 85 |
| 90 | ? chalk.bold(gradient.mind(ascii)) |
| 91 | : columns && columns >= 74 |
| 92 | ? chalk.bold(gradient.mind(asciiSmaller)) |
| 93 | : `\n${chalk.cyan.bold.underline('typescript-starter')}\n`; |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * On Windows, normalize returns "\\" as the path separator. |
no outgoing calls
no test coverage detected