Skip to content

Instantly share code, notes, and snippets.

View Minzquan07's full-sized avatar
😀
:0

Mqcandy Minzquan07

😀
:0
  • Cherry
  • Việt Nam
  • 05:14 (UTC +07:00)
  • Facebook Mqcandy.cte
View GitHub Profile
@Minzquan07
Minzquan07 / consoleColors.js
Created August 27, 2022 10:54 — forked from abritinthebay/consoleColors.js
The various escape codes you can use to color output to StdOut from Node JS
// Colors reference
// You can use the following as so:
// console.log(colorCode, data);
// console.log(`${colorCode}some colorful text string${resetCode} rest of string in normal color`);
//
// ... and so on.
export const reset = "\x1b[0m"
export const bright = "\x1b[1m"
export const dim = "\x1b[2m"