npm.io
1.1.0 • Published 6 years ago

consoleteller

Licence
ISC
Version
1.1.0
Deps
2
Size
3 kB
Vulns
0
Weekly
0

INSTALL:

$ npm install consoleteller

SUMMARY:

ConsoleTeller is a very simple module built to format and give your console messages some colour in them.

USAGE:

ConsoleTeller has 6 different "logging types", these are:

'info', 'error', 'warning', 'fatal', 'debug', 'priority'

INFO:

Colour: Green

Input:

const consoleTeller = require('consoleteller')

consoleTeller.info('App Started')

Output:

[11:09:59] INFO App Started

ERROR:

Colour: Red

Input:

const consoleTeller = require('consoleteller')

consoleTeller.error('App Crashed')

Output:

[11:09:59] ERROR App Crashed

WARNING:

Colour: Yellow

Input:

const consoleTeller = require('consoleteller')

consoleTeller.warning('App Slowing Down')

Output:

[11:09:59] WARNING App Slowing Down

FATAL:

Colour: Purple

Input:

const consoleTeller = require('consoleteller')

consoleTeller.fatal('Proccess Crashed')

Output:

[11:09:59] FATAL Process Crashed

DEBUG:

Colour: Cyan

Input:

const consoleTeller = require('consoleteller')

consoleTeller.debug('Error Catched: No module found')

Output:

[11:09:59] DEBUG Error Catched: No module found

PRIORITY:

Colour: Blue

Input:

const consoleTeller = require('consoleteller')

consoleTeller.priority('Something Important')

Output:

[11:09:59] PRIORITY Something Important

Extra Info:

Priority will bypass any other console.log and will always come out first.

Keywords