1.0.1 • Published 4 years ago
sudbina-prettylogs v1.0.1
prettylogs
A just for fun package that provides an easy to use way to create console logs with custom styling.
Installation
Using NPM:
npm install sudbina-prettylogs
Usage
import prettylog from './prettylogs'
prettylog('This is my styled log!', {options});
Options
So far the list of options than can be passed are limited and will expand as I update this package, current options are:
Option | Description | Value |
---|---|---|
Color | Changes the color of text, can be a named color, hex or rgb/a value | color: 'red' |
FontWeight | Changes the weight of the text | fontWeight: 'bold' |
FontSize | Changes the size of the text | fontSize: '24px' |
BackgroundColor | Changes the background color of the log | backgroundColor: 'black' |