win-color
v1.0.1
Published
Print any color in your terminal!
Downloads
2
Readme
win-color documentation
You can print anything in these some colors using this class called App
let color = new App('yourtext', 'blue') // Blue color
App Class
App - text. Option
App(Text, Option)
Basically prints anything you want [With blue, red, green, magenta, yellow, blue] $${\color{blue}A\color{yellow}n\color{green}y\color{black}t\color{cyan}h\color{pink}i\color{purple}n\color{magenta}g}$$ $${\color{blue}Blue}$$ $${\color{red}red}$$ $${\color{magenta}Magenta}$$
Common Colors
//Common colors
let blue = new App('Blue Color', option='blue')
let magenta = new App('Magenta Color', 'magenta')
let red = new App('Red color', 'red')
let green = new App('Green Color', 'green')
Builtin [Gradient]
Builtins
//Cyan builtin color
let cyan = new App('Hello world!', 'cyan')
//Gradient Builtin
let builtin = new App('Hey!', 'builtin')
//Output expected: Hey! (With blue,red,green)
Coloured Content
THIS FUNCTION IS IN BETA SO MAY NOT GET COLOURED This function prints an file content in coloured text
// Usage
const { FileContent } = require('win-color')=
const fileapp = new FileContent(file_path_here, 'blue')
const { FileContent } = require('win-color')=
const fileapp = new FileContent('test.txt', 'blue')
// Output: test, yay