Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
625 B
35 lines
625 B
let nope = s => String(s)
|
|
|
|
function createColors() {
|
|
return {
|
|
isColorSupported: false,
|
|
reset: nope,
|
|
bold: nope,
|
|
dim: nope,
|
|
italic: nope,
|
|
underline: nope,
|
|
inverse: nope,
|
|
hidden: nope,
|
|
strikethrough: nope,
|
|
black: nope,
|
|
red: nope,
|
|
green: nope,
|
|
yellow: nope,
|
|
blue: nope,
|
|
magenta: nope,
|
|
cyan: nope,
|
|
white: nope,
|
|
gray: nope,
|
|
bgBlack: nope,
|
|
bgRed: nope,
|
|
bgGreen: nope,
|
|
bgYellow: nope,
|
|
bgBlue: nope,
|
|
bgMagenta: nope,
|
|
bgCyan: nope,
|
|
bgWhite: nope
|
|
}
|
|
}
|
|
|
|
module.exports = createColors()
|
|
module.exports.createColors = createColors
|
|
|