even-better-console
v1.0.1
Published
An even better node.js console.
Downloads
3
Readme
even-better-console
An even better Node.js console.
Installation
Install with npm:
$ npm install even-better-console
Usage
When writing to the console this project will add the project name as a prefix to the console. By default both the prefix and the paramaters are colored.
const console = require('even-better-console');
console.log('test');
console.options.logWithColor = false;
console.log('test');
Output:
Example 2:
const console = require('even-better-console');
console.log('log');
console.options.logWithColor = false;
console.log('log');
console.error('error');
console.options.errorWithColor = false;
console.error('error');
console.info('info');
console.options.infoWithColor = false;
console.info('info');
console.warn('warn');
console.options.warnWithColor = false;
console.warn('warn');
Output:
About
Pull requests are always welcome. For bugs and feature requests, please create an issue.
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test
License
Copyright © 2021, BonnieToGamer. Released under the MIT License.