0.0.5 • Published 5 years ago

cheer-up-console v0.0.5

Weekly downloads
5
License
MIT
Repository
-
Last release
5 years ago

cheer-up-console

Drop-in replacement for Node.js console

Simply load the module at the beginning of your file and any subsequent call to one of the following console method will produce a colorful and more readable output.

  1. console.log
  2. console.error
  3. console.warn
  4. console.info
  5. console.dir
  6. console.memory (extra method)

Install

npm i cheer-up-console

Use

require('cheer-up-console')(options);

Options

Options should be passed as a json object.

ParamAccepted valuesdefault
enabledtrue or falsetrue
silenttrue, false, listtrue

silent param

The silent param can also accept a list of console methods that you want to silence.

For example, if you want to silence all the console.log and console.info, you can pass the param ['log', 'info']. All the other console methods will continue to produce an output.