0.0.5 • Published 2 years ago
coloured-text-common v0.0.5
Coloured-text
INDEX
Install
npm install coloured-text
npm i coloured-text
Usage
import ct from "coloured-text";
ct.showTemplates(); // This will show you templates from ct.msg
console.log(ct.msg.info("LOADING...", 11)); // Output: "[i] LOADING..."
console.log(
ct.colors.print("HELLO WORLD!", {
color: [ct.colors.fgColor.black, ct.colors.bgColor.cyan],
decoration: [ct.colors.decoration.underline]
})
) // Output: HELLO WORLD! with cyan background, and underlined black text
console.log(`${ct.colors.fgColor.green}HELLO WORLD!${ct.colors.end}`) // Output: HELLO WORLD! with green text
MSG Variants
ct.msg.success("SomeText", 0 to 23);
ct.msg.error("SomeText", 0 to 23);
ct.msg.info("SomeText", 0 to 23);
Each one has 24 different options
0.0.5
2 years ago