beautlog
TypeScript icon, indicating that this package has built-in type declarations

0.5.7 • Public • Published

:package: beautlog

📦 beautlog

Show log messages on your terminal with style :-) . Use debugging levels to enable or disable log messages.

Issues GitHub pull requests GitHub Downloads GitHub Total Downloads GitHub release

Report Bug Request Feature

Did you like the project? Please, considerate a donation to help improve!

Show log messages on your terminal with style :-) . Use debugging levels to enable or disable log messages.

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.

Package Sidebar

Install

npm i beautlog

Weekly Downloads

13

Version

0.5.7

License

MIT

Unpacked Size

14.3 kB

Total Files

11

Last publish

Collaborators

  • tecnobert