An even better Node.js console.
Install with npm:
$ npm install even-better-console
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');
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');
Contributing
Pull requests are always welcome. For bugs and feature requests, please create an issue.
Running Tests
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
Copyright © 2021, BonnieToGamer. Released under the MIT License.