JSPM

ezito-log

2.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 3
    • Score
      100M100P100Q17231F
    • License ISC

    bg color and font color console.log

    Package Exports

    • ezito-log
    • ezito-log/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ezito-log) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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])));