console-master

console-master is console logger that supports colors and correct time-format built by refloow for osl-works github projects.

Usage no npm install needed!

<script type="module">
  import consoleMaster from 'https://cdn.skypack.dev/console-master';
</script>

README

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.

Downloads

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: