consoleartist
v1.1.1
Published
Elevate your terminal applications with vibrant text styling and color options, enhancing readability and user experience. Craft visually appealing command-line interfaces effortlessly.
Maintainers
Readme
Absolutely! Here's a revamped, modern, and “cool” README for your ConsoleArtist package — with clear sections, code examples, and a fun vibe for developers:
🎨 ConsoleArtist
Bring your Node.js terminal to life! ConsoleArtist is a lightweight npm package that lets you style and color your terminal text like a pro. Make your logs pop, highlight important messages, or just have fun with a rainbow of colors 🌈.
🚀 Features
- Colorful Text – Easily apply foreground and background colors.
- Text Styles – Bold, italic, underline, strikethrough for emphasis.
- Special Effects –
dot,rainbow,rgbpalettes for fancy outputs. - Lightweight & Fast – Minimal footprint, no performance compromise.
- Plug-and-Play – Works seamlessly with
console.log().
🎨 Available Styles
Foreground Colors
black, red, green, yellow, blue, magneta, cyan, white
Background Colors
bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagneta, bgCyan, bgWhite
Text Styles
bold, italic, underline, strikeThrough
Special Effects
dot– add a bullet point before textrgb(text, r, g, b)– full RGB color supportrainbow(text)– cycles through rainbow colors
⚡ Installation
npm install consoleartist🛠 Usage Examples
Basic Colors
import { artist } from "consoleartist";
console.log(artist.green("Success!"));
console.log(artist.red("Error!"));
console.log(artist.yellow("Warning!"));Background Colors
console.log(artist.bgBlue("Blue background!"));
console.log(artist.bgGreen(artist.bold("Bold green background!")));Text Styles
console.log(artist.bold("Bold text"));
console.log(artist.italic("Italic text"));
console.log(artist.underline("Underline me!"));
console.log(artist.strikeThrough("Strikethrough"));RGB & Rainbow Effects
console.log(artist.rgb("Custom RGB Color!", 255, 0, 128));
console.log(artist.rainbow("🌈 Rainbow text! 🌈"));Dot & Chaining Styles
console.log(artist.dot(artist.bgGreen(artist.bold("Important note"))));📦 Quick Tip
You can destructure your favorite styles for cleaner code:
const { red, bold, bgYellow } = artist;
console.log(red(bold("Bold red text on default background")));
console.log(artist.dot(bgYellow("Yellow background with dot")));🎉 Why Use ConsoleArtist?
- Perfect for CLI tools, debug logs, scripts, or just having fun in terminal.
- Minimal setup, zero dependencies, works everywhere Node.js runs.
- Makes your console output beautiful, readable, and attention-grabbing.
🔗 Links
- NPM: https://www.npmjs.com/package/consoleartist
- GitHub: https://github.com/harshavardanan/consoleartist-npm
✨ Pro Tip: Combine colors and styles to create your own custom terminal “themes”!
