1.0.3 • Published 3 years ago

console-master v1.0.3

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

console-master

Allows colors and adds correct time-format to console logs

console-master is node module console logger that supports colors and correct time-format built by @Refloow for OSL-works Github projects.

Installation

Install it from npm:

$ npm install console-master

Usage examples

// Import module
// Import the module under the name that you like, in the example Console with capital C is used
// Importing module under the name console, will cause an error in case of using standard console.log(".");


const Console = require("console-master");

// All ussage examples
// in case of a different name chosen under which module is imported use
// yourchosenname.false("Shows bold red text"); for example

// All variants
Console.false("Shows bold red text");
Console.true("Shows bold green text");
Console.new("Shows underline gray text");
Console.info("Shows yellow text");
Console.summary("Shows cyan text");

// Errors can be shown with .fail, .err, .error
Console.fail("Shows red text");
Console.err("Shows red text");
Console.error("Shows red text");
Console.import("Shows white text with red background");
Console.export("Shows white text with green background");

Result looks like this:

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago