1.0.3 • Published 1 year ago

node-konsole v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

node-konsole

Powerful zero dependency and single import console logging tool for Node.js

Install

npm install --save node-konsole

Usage

// it doesn't matter it default imported or not
// import { konsole } from 'node-konsole';
import konsole from "node-konsole";

// <0> is the same like <r> or <reset>
konsole.log("<blue><underscore>I'm blue underscored<red>!<0>");

Get by code

You can get the color by thier code, like this:

import konsole from "node-konsole";

konsole.log("<30>Some colored text<0>");

// Expirental usage, may not work at all.
konsole.log("<30:5>Some colored text<0>");