ayoub 90dfb0f813 Auto COMMIT for build : 7185 \n commit by: a.hassani <hassani.ayoub@gmail.com> \n with message : update acii art banner | 1 year ago | |
---|---|---|
README.md | 1 year ago | |
index.js | 1 year ago | |
package.json | 1 year ago |
Putting colors in terminal is an interesting idea bit, what if the user dosent have a terminal that manage colors or have only 16 or 8 colors when you used a 256 colors logger or some other things ..
you will see text like this in your terminal
22m 1.83 KiB {[1m[33m0[39m[22m}[1m[32m [built][39m[22m
npm install @d3v4pp/colors --save
const Colors = require('@d3v4pp/colors');
console.log(Colors.color("text to log",[0..255]));
console.log(Colors.bgColor("text to log",[0..255]));
console.log(Colors.bgColor( Colors.color("text to log",[0..255]) , [0..255] ));
const Colors = require('@d3v4pp/colors');
console.log("text to log".color([o..255]) );
console.log("text to log".bgColor([0..255]));
console.log("text to log".color([0..255]).bgColor([0..255])));