mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
chore: Add color to the install script
- This will only work on terminals setup to use color
This commit is contained in:
parent
4c340fd0ba
commit
e726e42cb5
2 changed files with 25 additions and 6 deletions
14
config/color-console.js
Normal file
14
config/color-console.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* Console changes
|
||||
* This allows us to give the console some colour when running in a terminal
|
||||
*/
|
||||
|
||||
console.orange = (msg) => console.log('\x1b[33m%s\x1b[0m', msg);
|
||||
console.green = (msg) => console.log('\x1b[32m%s\x1b[0m', msg);
|
||||
console.red = (msg) => console.log('\x1b[31m%s\x1b[0m', msg);
|
||||
console.blue = (msg) => console.log('\x1b[34m%s\x1b[0m', msg);
|
||||
console.purple = (msg) => console.log('\x1b[35m%s\x1b[0m', msg);
|
||||
console.cyan = (msg) => console.log('\x1b[36m%s\x1b[0m', msg);
|
||||
console.yellow = (msg) => console.log('\x1b[33m%s\x1b[0m', msg);
|
||||
console.white = (msg) => console.log('\x1b[37m%s\x1b[0m', msg);
|
||||
console.gray = (msg) => console.log('\x1b[90m%s\x1b[0m', msg);
|
||||
Loading…
Add table
Add a link
Reference in a new issue