Cmlog
✏️ Emoji console logger
Installation
Using yarn:
$ yarn add cmlog
Using npm:
$ npm i cmlog
Getting started
// See types section for all available typescmlogcmlogcmlogcmlogcmlog
Types
A list of all available default types:
- ✅
cmlog.success(...str)
- 🔵
cmlog.info(...str)
- 😥
cmlog.warn(...str)
- 🐛
cmlog.debug(...str)
- ⌛
cmlog.waitting(...str)
- 🔥
cmlog.boosting(...str)
- 👶
cmlog.start(...str)
- ✨
cmlog.done(...str)
- 📦
cmlog.pack(title, ...str)
- ⚪
cmlog.module(title, ...str)
- ❌
cmlog.error(Error)
Split / Blank
cmlog.split(char, count)
cmlog.blank(lines)
// default: char = "="; count = 40cmlog // output:// ========================================= // default: lines = 1;cmlog
Log object
cmlog.json(obj, title)
cmlog
Terminal log:
⚪ Format
Dye string
cmlog.dye(color, ...str)
return:
string
Colors
black
red
green
yellow
blue
magenta
cyan
white
gray
redBright
greenBright
yellowBright
blueBright
magentaBright
cyanBright
whiteBright
Config
// default configconst cmlog = align : true // whether to align info maxLength: 8 // (align:true) the max spacings to add debug : true // whether to show debug log time : false // whether to show time info
License
MIT