An open API service indexing awesome lists of open source software.

https://github.com/bevatsal1122/log-prettify

NPM Package for decorating Logs in Console in Browser & showing Success/ Warning / Danger Messages according to need
https://github.com/bevatsal1122/log-prettify

javascript npm-package

Last synced: 2 months ago
JSON representation

NPM Package for decorating Logs in Console in Browser & showing Success/ Warning / Danger Messages according to need

Awesome Lists containing this project

README

        

# log-prettify Package

### Import decorator Object

import decorator from 'log-prettify';

const decorator = require('log-prettify');

### Log Output

decorator.mod({
text: "ENTER TEXT",
fontSize: "ENTER_FONT_SIZE",
color: "ENTER_FONT_COLOR_IF_REQUIRED",
backgroundColor: "ENTER_FONT_BACKGROUND_COLOR_IF_REQUIRED",
margin: "ENTER_MARGIN_HERE_IF_REQUIRED",
marginTop: "ENTER_MARGIN-TOP_HERE_IF_REQUIRED",
marginBottom: "ENTER_MARGIN-BOTTOM_HERE_IF_REQUIRED",
marginLeft: "ENTER_MARGIN-LEFT_HERE_IF_REQUIRED",
marginRight: "ENTER_MARGIN-RIGHT_HERE_IF_REQUIRED",
padding: "ENTER_PADDING_HERE_IF_REQUIRED",
paddingTop: "ENTER_PADDING-TOP_HERE_IF_REQUIRED",
paddingBottom: "ENTER_PADDING-BOTTOM_HERE_IF_REQUIRED",
paddingLeft: "ENTER_PADDING-LEFT_HERE_IF_REQUIRED",
paddingRight: "ENTER_PADDING-RIGHT_HERE_IF_REQUIRED"
});


Sample Output Image

### Log Success Message

decorator.success("This is a Success Message.");


Sample Output Image

### Log Warning Message

decorator.warn("This is a Warning Message.");


Sample Output Image

### Log Danger Message

decorator.danger("This is a Danger Message.");


Sample Output Image