console-master

1.0.3 • Public • Published

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:

Package Sidebar

Install

npm i console-master

Weekly Downloads

11

Version

1.0.3

License

MIT

Unpacked Size

33.8 kB

Total Files

6

Last publish

Collaborators

  • osl-works