ezito-log

2.0.0 • Public • Published

Install

npm install ezito-log

Usage

const console = require("ezito-log");

// output : red(hello) => hello with red color with space 
console.log(console.FC.RED("hello"));

console.out(console.FC.RED("hello") , console.FC.GREEN("TEST"))
console.log(console.FC.RED("hello") , console.FC.GREEN("TEST"))
// output : helloTEST with out space

// with out function
console.out(console.FC.RED , "test ", console.FC.GREEN, "TEST" );
console.log(console.FC.RED , "test ", console.FC.GREEN, "TEST" );

// change bg color
console.out(console.BG.WHITE , console.FC.RED , "test ", console.FC.GREEN("TEST"))
console.log(console.BG.WHITE , console.FC.RED , "test ", console.FC.GREEN("TEST"))

// bg color , font color , bold
console.out(console.BG.WHITE , console.FC.RED("test"),console.FS.bold(console.FC.GREEN("TEST")));
console.log(console.BG.WHITE , console.FC.RED("test"),console.FS.bold(console.FC.GREEN("TEST")));

// multi bg color , font color , style bold
console.out(console.BG.WHITE , console.FC.RED , "test",console.BG.GREEN, console.FS.bold(console.FC.GREEN("TEST")))
console.log(console.BG.WHITE , console.FC.RED , "test",console.BG.GREEN, console.FS.bold(console.FC.GREEN("TEST")))

// with underline
console.out(console.FS.underline(console.FC.RED("hello")));
console.log(console.FS.underline(console.FC.RED("hello")));


// with hex
console.out(console.FS.underline(console.FC.color("hello", "#000")));
// with rgb
console.out(console.FS.underline(console.FC.color("hello", [ 244 ,233 , 44])));

Package Sidebar

Install

npm i ezito-log

Weekly Downloads

2

Version

2.0.0

License

ISC

Unpacked Size

11.8 kB

Total Files

6

Last publish

Collaborators

  • ezito