DEV Community

Codewithharsh
Codewithharsh

Posted on

Introducing colorific-magic: Enhance Your Console Logs with Stunning Colors

šŸš€ Exciting News! šŸš€

Iā€™m thrilled to announce the release of my latest npm package: colorific-magic! šŸŽØāœØ

What is colorific-magic?

colorific-magic is a lightweight and versatile Node.js library designed to bring vibrant and customizable colors to your console logs. Perfect for developers who want to make their terminal outputs stand out, colorific-magic offers a range of colorful and stylish log options to brighten up your development workflow.

NPM package : npm i colorific-magic
Link :

Key Features:
Success Messages:

success(msg: string) - Green and bold
successLight(msg: string) - Light green and bold
successBg(msg: string) - Green background with white text
Danger/Error Messages:

danger(msg: string) - Red and bold
dangerBg(msg: string) - Red background with white text
dangerOutline(msg: string) - Red border with text
Info Messages:

info(msg: string) - Black text on yellow background
infoLight(msg: string) - Yellow text on black background
infoBlue(msg: string) - Blue and bold
Warning Messages:

warning(msg: string) - Orange and bold
warningBg(msg: string) - Orange background with white text
warningOutline(msg: string) - Orange border with text
Debugging Messages:

debug(msg: string) - Blueviolet and bold
debugBg(msg: string) - Blueviolet background with white text
debugShadow(msg: string) - Blueviolet with text shadow
Success with Borders:

successWithBorder(msg: string) - Green border with text
successBgWithBorder(msg: string) - Green background with dark green border
Neutral Messages:

neutral(msg: string) - Gray text
neutralBg(msg: string) - Gray background with white text
neutralShadow(msg: string) - Gray text with shadow
Custom Styles:

custom(msg: string, color: string, bgColor: string) - Customizable text and background
bold(msg: string) - Bold black text
italic(msg: string) - Italic blue text
underline(msg: string) - Underlined purple text
strikethrough(msg: string) - Strikethrough red text
Fancy Styles:

gradientText(msg: string) - Gradient text
shadowText(msg: string) - Text with shadow
rainbowText(msg: string) - Rainbow text
darkBg(msg: string) - White text on dark background
lightBg(msg: string) - Black text on light background
blueBg(msg: string) - White text on blue background
Other Fancy Styles:

fancyShadow(msg: string) - Magenta text with shadow
fancyBorder(msg: string) - Purple dashed border
fancyBgWithShadow(msg: string) - Dark blue background with shadow
Why Use colorific-magic?

Enhance Visibility: Make your logs more readable and visually appealing.
Customizable: Tailor your logs with different colors, backgrounds, and styles.
Easy to Use: Simple API for integrating into any Node.js project.
šŸ”— Check it out and get started today! You can find colorific-magic on npm.

Feel free to reach out with any questions or feedback, and happy coding! šŸ’»āœØ

Top comments (0)