1.0.11 • Published 4 years ago
vincentxman-tools v1.0.11
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 | whitegreyblackbluecyangreenmagentaredyellow |
background | whiteBGblackBGblueBGcyanBGgreenBGmagentaBGredBG yellowBG |
style | bolditalicunderlineinverse strikethrough |
log | infoidebug d error e warn w |