3.1.1 • Published 1 year ago

nodejs-color-logger v3.1.1

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

nodejs-color-logger


Simple and easy to use console log utilty for node.js applications

Functions

  • .color('color')
  • .style('style')
  • .type('type')
  • .timestamp('format [optional]')
  • .log(...args)

Examples

logger.color('green').log('Connected to Socket')

npm.io

logger.type('debug').color('brightGreen').log('Connected to Socket')

npm.io

logger.style('underscore').log('Connected to Socket')

npm.io

logger.type('info').timestamp().style('italic').color('green').log("Connected to Socket")

npm.io

The positioning of the elments doesnt matter with one execption, the log function have to called at least position.

Options

colorsstylestypes
blackboldsuccess
reddimerror
greenitalicwarning
yellowunderscoreinfo
bluereversedebug
magentahidden
cyanstrikethrough
whitebackoneline

INFO: You can use every color as brighter version by adding a bright before and capitalize the first letter of the color


3.1.1

1 year ago

3.0.1

1 year ago

3.0.0

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago