MCPcopy Index your code
hub / github.com/bitjson/typescript-starter / getIntro

Function getIntro

src/cli/utils.ts:71–94  ·  view source on GitHub ↗
(columns: number | undefined)

Source from the content-addressed store, hash-verified

69}
70
71export 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.

Callers 2

cli.tsFile · 0.90
cli.unit.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected