0.1.4-alpha • Published 6 years ago

bart96-style-cli-ultimate v0.1.4-alpha

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

Node.js – StyleCLI Ultimate (Logger)

A node.js package for displaying formatted text, array or object in the console with date.

Build Status

Installation

$ npm install bart96-style-cli-ultimate

Usage

const Logger = require('bart96-style-cli-ultimate');
let logger = new Logger({ /* options */ });
functionResult
logger.log()> 2018.06.20 00:00 => (styleCliUltimate.js) foo bar baz
logger.log('foo bar')> 2018.06.20 00:00 => (styleCliUltimate.js) foo bar
logger.log('foo bar', 1)> 2018.06.19 00:14 => (styleCliUltimate.js) foo bar
logger.log('foo bar', 2)> 2018.06.19 00:14 => (styleCliUltimate.js) foo bar
logger.log('foo bar', 3)> 2018.06.19 00:14 => (styleCliUltimate.js) foo bar
logger.log('foo bar', 99)> 2018.06.19 00:14 => (styleCliUltimate.js) foo bar
logger.log(true, false)> 2018.06.20 00:00 => (styleCliUltimate.js) true false
logger.log(['foo', 'bar', 'baz'])> 2018.06.20 00:00 => (styleCliUltimate.js) foo,bar,baz
logger.log(foo => {return bar})> 2018.06.19 00:14 => (styleCliUltimate.js) foo => {return bar}

Options (Object)

ParameterTypeOptionalDefaultDescription
1.formstringyyyy.mm.dd HH:MMbart96-format
2.UTCbooleanfalsebart96-format
3.replacerarray[][ ['for example', 'e.g.'], ['that is', 'i.e.'], ]
4.debugModebooleanfalsedebugMode == true ? err.stack : err.name +' '+ err.message
5.typeColorobject{'Null':'white', 'error':'red', ...}Title = obj.key; Color = obj.value
0.1.4-alpha

6 years ago

0.1.3-alpha

6 years ago

0.1.2-alpha

6 years ago

0.1.1-alpha

6 years ago

0.1.0-alpha

6 years ago

0.0.2-alpha

6 years ago

0.0.1-alpha

6 years ago

0.0.1-security

6 years ago