Skip to content

BonnieToGamer/even-better-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

License

Copyright © 2021, BonnieToGamer. Released under the MIT License.


About

A better Javascript console.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published