terminalcolors.js
v1.0.9
Published
`terminal.js` is able to make the terminal have any color you want! Even custom RGB colors if you're feeling like it!
Downloads
30
Maintainers
Readme
Terminal.js
Terminal.js: The best terminal colorizer.
terminal.js is able to make the terminal have any color you want! Even custom RGB colors if you're feeling like it!
Usage:
First, require it.
require("terminalcolors.js");
console.log("hello".green());Note: If you want to use multiple styles, you must use the following syntax:
const color = require("terminalcolors.js");
console.log(color.bold("hello".blue()));IMPORTANT If you are using an older version of node, the "string".blue() syntax might work. If so, try the following instead:
const color = require("terminalcolors.js");
console.log(color.blue("string"))'The export will look like this: (for reference)
{
full: {
...basic,
font: fonts,
reset,
...foreground,
background,
highIntensity: {
...foreground_high_intensity,
background: background_high_intensity
}
}
}