1.0.1 • Published 2 years ago

even-better-console v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

even-better-console

NPM version NPM monthly downloads NPM total downloads

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 1

Example 2

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:

Example 3

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.