even-better-console

1.0.1 • Public • Published

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.


Readme

Keywords

Package Sidebar

Install

npm i even-better-console

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

19.5 kB

Total Files

4

Last publish

Collaborators

  • bonnietogamer