node-konsole
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i node-konsole

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

8.73 kB

Total Files

9

Last publish

Collaborators

  • der_googler