README
vincentxman-tools
Mini lightweight console color logger.
install
> npm install vincentxman-tools
demo.js
// demo.js
require("vincentxman-tools");
console.i("console.info");
console.e("console.error");
console.w("console.warn");
console.d("console.debug\n");
console.log("there is a " + "info".info + " e\n".e);
console.log("there is a ".black.whiteBG + "warn\n".blue.yellowBG.bold);
demo.ts
// demo.ts
import { _console } from "vincentxman-tools";
_console.init();
console.i("console.info");
console.e("console.error");
console.w("console.warn");
console.d("console.debug\n");
console.log("there is a " + "info".info + " e\n".e);
console.log("there is a ".black.whiteBG + "warn\n".blue.yellowBG.bold);
Style
function | |
---|---|
color | white grey black blue cyan green magenta red yellow |
background | whiteBG blackBG blueBG cyanBG greenBG magentaBG redBG yellowBG |
style | bold italic underline inverse strikethrough |
log | info i debug d error e warn w |