Created: 2023-03-29 13:04
Reference: StackOverflow answer: How to change node.js’s console font color?
const RESET = '\x1b[0m'
const bright = (input) => '\x1b[1m' + input + RESET
const dim = (input) => '\x1b[2m' + input + RESET
const underscore = (input) => '\x1b[4m' + input + RESET
const blink = (input) => '\x1b[5m' + input + RESET
const reverse = (input) => '\x1b[7m' + input + RESET
const hidden = (input) => '\x1b[8m' + input + RESET
const black = (input) => '\x1b[30m' + input + RESET
const red = (input) => '\x1b[31m' + input + RESET
const green = (input) => '\x1b[32m' + input + RESET
const yellow = (input) => '\x1b[33m' + input + RESET
const blue = (input) => '\x1b[34m' + input + RESET
const magenta = (input) => '\x1b[35m' + input + RESET
const cyan = (input) => '\x1b[36m' + input + RESET
const white = (input) => '\x1b[37m' + input + RESET
const gray = (input) => '\x1b[90m' + input + RESET
const bgWhite = (input) => '\x1b[47m' + input + RESET
const bgGreen = (input) => '\x1b[42m' + input + RESET
const bgBlack = (input) => '\x1b[40m' + input + RESET
const bgRed = (input) => '\x1b[41m' + input + RESET
const bgYellow = (input) => '\x1b[43m' + input + RESET
const bgBlue = (input) => '\x1b[44m' + input + RESET
const bgMagenta = (input) => '\x1b[45m' + input + RESET
const bgCyan = (input) => '\x1b[46m' + input + RESET
const bgGray = (input) => '\x1b[100m' + input + RESET