fancy-console-js
v1.6.0
Published
A simple package to colorize your console and make easy to understand your logs
Downloads
33
Maintainers
Readme
Fancy Console JS
A simple and small JavaScript Package to enhance your debugging experience with console.
Installation
npm i fancy-console-js --dev
or
yarn add -D fancy-console-js
Usage
import fancyConsole from "fancy-console-js"
fancyConsole({
content: "//Content You want to log",
variant: "anyone from the Variants",
identifier: "your file name from where you are writing the log",
identifierBg: "anyone from the Colors",
identifierColor: "anyone from the Colors",
badgeBg: "anyone from the Colors",
badgeColor: "anyone from the Colors",
});
Variants
- success
- info
- warning
- error
Colors
- Black
- Red
- Green
- Yellow
- Blue
- Magenta
- Cyan
- White
- Gray
- Bright Red
- Bright Green
- Bright Yellow
- Bright Blue
- Bright Magenta
- Bright Cyan
- Bright White