https://github.com/refloow/console-master
❤️ console-master is node console logger that supports colors and correct time-format built by @Refloow for OSL-works Github projects.
https://github.com/refloow/console-master
colors console format logger logs master module nodejs
Last synced: 11 months ago
JSON representation
❤️ console-master is node console logger that supports colors and correct time-format built by @Refloow for OSL-works Github projects.
- Host: GitHub
- URL: https://github.com/refloow/console-master
- Owner: Refloow
- License: mit
- Created: 2021-03-14T11:12:45.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-07-10T06:50:18.000Z (almost 4 years ago)
- Last Synced: 2025-05-09T03:56:07.929Z (about 1 year ago)
- Topics: colors, console, format, logger, logs, master, module, nodejs
- Language: JavaScript
- Homepage: https://discord.gg/4enDY8yhuS
- Size: 66.4 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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 Github projects._

## Installation
Install it from [npm](https://www.npmjs.com/package/console-master):
$ npm install console-master
## Usage examples
```js
// 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: