1.0.1 • Published 4 years ago

sudbina-prettylogs v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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:

OptionDescriptionValue
ColorChanges the color of text, can be a named color, hex or rgb/a valuecolor: 'red'
FontWeightChanges the weight of the textfontWeight: 'bold'
FontSizeChanges the size of the textfontSize: '24px'
BackgroundColorChanges the background color of the logbackgroundColor: 'black'

License

MIT