beautlog
v0.5.7
Published
Show log messages on your terminal with style :-) . Use debugging levels to enable or disable log messages.
Downloads
58
Maintainers
Readme
Getting started
Installation
npm i beautlog
or
Installation
yarn add beautlog
Usage
const Console = require('beautlog');
Console.trace('Trace');//change the level to use trace
Console.success('Success');
Console.ok('Ok');//success alias
Console.debug('Debug');
Console.info('Info');
Console.warning('Warning');
Console.warn('Warn');//warning alias
Console.error('Error');
or
import Console from 'beautlog';
Console.WriteLine('Hello World');
Console.trace('Trace');
Console.success('Success');
Console.ok('Ok');
Console.debug('Debug');
Console.info('Info');
Console.warning('Warning');
Console.warn('Warn');
Console.error('Error');
or
import { puts, print, printf, log, debug } from 'beautlog';
puts('Hello World');
print('Hello World');
printf('Hello World');
log('Hello World');
debug('Hello World');
Input usage
import Console, { input } from 'beautlog';
const myValue = input('Insert an value:');
//or:
const mySecondValue = Console.ReadLine('Insert an second value:');
//result:
Console.Write(`${myValue} and ${mySecondValue}`);
Clone this repository:
git clone https://github.com/hebertcisco/beautlog
Open the directory and run the script line:
cd beautlog && npm i && rm -rf .git && git init
🤝 Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.
Show your support
Give a ⭐️ if this project helped you!
Or buy me a coffee 🙌🏾
📝 License
Copyright © 2023 Hebert F Barros. This project is MIT licensed.