https://github.com/dergoogler/node-konsole
Powerful zero dependency and single import console logging tool for Node.js
https://github.com/dergoogler/node-konsole
Last synced: 12 months ago
JSON representation
Powerful zero dependency and single import console logging tool for Node.js
- Host: GitHub
- URL: https://github.com/dergoogler/node-konsole
- Owner: DerGoogler
- License: mit
- Created: 2022-11-17T18:42:05.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-19T17:40:09.000Z (over 3 years ago)
- Last Synced: 2025-05-29T14:14:19.145Z (about 1 year ago)
- Language: TypeScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-konsole
Powerful zero dependency and single import console logging tool for Node.js
## Install
```shell
npm install --save node-konsole
```
## Usage
```js
// it doesn't matter it default imported or not
// import { konsole } from 'node-konsole';
import konsole from "node-konsole";
// <0> is the same like or
konsole.log("I'm blue underscored!<0>");
```
### Get by code
You can get the color by thier code, like this:
```js
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>");
```