vincentxman-tools
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

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

Package Sidebar

Install

npm i vincentxman-tools

Weekly Downloads

18

Version

1.0.11

License

ISC

Unpacked Size

18.6 kB

Total Files

22

Last publish

Collaborators

  • vincentxman