2.0.2 • Published 6 years ago
bestconsole v2.0.2
BestConsole
Making your log messages simply, beautiful.
Changelog (2.0.2)
- Completely rewrote Readme! (P.S. You're reading it now)
- Fixed Error Messages
- Added Prefixes to funcions
Installation
const bconsole = require('bestconsole');
That's it, you're done. You can start using BestConsole!
Usage
.error()
Syntax: bconsole.error(message, prefix)
bconsole.error('My Error!', 'My Prefix');
.warn()
Syntax: bconsole.warn(message, prefix)
bconsole.warn('My Warning!', 'My Prefix');
.info()
Syntax: bconsole.error(message, prefix)
bconsole.info('My Information!', 'My Prefix');
.stat()
Syntax: bconsole.error(message, prefix)
bconsole.stat('My Status!', 'My Prefix');
.timestamp()
Syntax: bconsole.error(message)
Note: prefix
is not supported on timestamp!
bconsole.timestamp('My message with a timestamp!');