1.3.1 • Published 27 days ago

candy-log v1.3.1

Weekly downloads
-
License
ISC
Repository
github
Last release
27 days ago

Candy Log Downloads

An easy to use utility for logging your terminal logs in style.

- success
- error 
- warning
- log

While the success, error, and warning presets come with predefined color codes for standard conventions, the log option provides full customization, allowing you to tailor your log's styles according to your preferences.

Installation

Usage

// Examples

/* Access static class */
const { Candy } = require('candy-log');  
const options = {bold: false, color: 'blue', background: 'red'}

Candy.log('Application started', options, ...data);
Candy.log('Application started', null, ...data);
Candy.success('Payment successful', ...data);
Candy.error(errorMessage, ...data);
Candy.warning(warningMessage, ...data);


/* Create an instance of the class */
const { Candy } = require('candy-log');
const c = new Candy();

c.log('Application started', options, ...data);
c.log('Application started', null, ...data);
c.success('Payment successful', ...data);
c.error(errorMessage, ...data);
c.warning(warningMessage, ...data);

Demo 1

Demo 1

Demo 2

Demo 2

Available Colors

'green'
'blue'
'red'
'magenta'
'cyan'
'yellow'
'black'
'white'

Note

Colors may be affected by how your terminal handles the brightness. Changes to those settings may be needed to get good contrasts between the different colors.

1.3.1

27 days ago

1.3.0

1 month ago

1.2.2

2 months ago

1.2.1

2 months ago

1.2.0

2 months ago

1.1.1

2 months ago

1.1.0

2 months ago

1.0.5

2 months ago

1.0.4

2 months ago

1.0.3

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago