mirror of
https://github.com/harivansh-afk/asap.it.git
synced 2026-04-17 04:02:21 +00:00
first commit
This commit is contained in:
commit
1cdbffff09
200 changed files with 30007 additions and 0 deletions
11
app/utils/terminal.ts
Normal file
11
app/utils/terminal.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
const reset = '\x1b[0m';
|
||||
|
||||
export const escapeCodes = {
|
||||
reset,
|
||||
clear: '\x1b[g',
|
||||
red: '\x1b[1;31m',
|
||||
};
|
||||
|
||||
export const coloredText = {
|
||||
red: (text: string) => `${escapeCodes.red}${text}${reset}`,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue