Package Exports
- rainbow-console-colors
- rainbow-console-colors/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rainbow-console-colors) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
๐ Rainbow Console
Transform your boring
console.log
into a rainbow of colors, animations, and emojis! Make debugging fun again! โจ
Because life's too short for boring console logs! ๐
๐ Why Rainbow Console?
- ๐จ 16+ Beautiful Effects - From rainbow text to typewriter animations
- ๐ Emoji Integration - Every message gets the perfect emoji
- ๐ Method Chaining - Chain multiple effects for epic logs
- โก Zero Config - Works out of the box, no setup required
- ๐ฆ Lightweight - Only one dependency (chalk)
- ๐ฏ TypeScript Ready - Full TypeScript support coming soon
๐ฅ Installation
npm install rainbow-console-colors
That's it! No configuration, no complicated setup. Just install and start making your console AMAZING! ๐
๐ฎ Quick Start
const rc = require('rainbow-console-colors');
// Basic usage - so easy!
rc.success('Package installed successfully!');
rc.error('Oops! Something went wrong');
rc.warning('This feature is deprecated');
rc.info('Server running on port 3000');
// Make text RAINBOW! ๐
rc.rainbow('This text is absolutely RAINBOW!');
// Special effects for special moments
rc.fire('This feature is HOT!');
rc.rocket('Launching to production!');
rc.party('100 users online!');
rc.magic('Code deployed like magic!');
๐จ All Available Methods
๐ข Basic Messages
rc.success('Everything worked perfectly!'); // โ
Green success message
rc.error('Something went wrong!'); // โ Red error message
rc.warning('Be careful with this!'); // โ ๏ธ Yellow warning message
rc.info('Here\'s some useful information'); // โน๏ธ Cyan info message
๐ Rainbow Magic
rc.rainbow('Every letter gets a different color!');
// Output: E(red)v(yellow)e(green)r(cyan)y(blue)...(and so on)
๐ฏ Special Effects
rc.fire('This feature is absolutely HOT!'); // ๐ฅ Fire effect
rc.rocket('Launching the new version!'); // ๐ Rocket effect
rc.party('We reached 1000 users!'); // ๐ Party effect
rc.magic('Deployment completed like magic!'); // โจ Magic sparkles
๐จ Custom Styling
rc.color('This text is red', 'red');
rc.color('This text is blue', 'blue');
rc.color('This text is yellow', 'yellow');
// Supports all chalk colors!
๐ฆ Box Messages
rc.box('Important Notice!\nThis is a boxed message\nwith multiple lines!');
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Important Notice! โ
โ This is a boxed message โ
โ with multiple lines! โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โณ Progress Bars
rc.progress(75, 'Loading awesome features...');
// Progress: [โโโโโโโโโโโโโโโโโโโโ] 75% Loading awesome features...
โจ๏ธ Typewriter Effect
await rc.typewriter('This text appears like typing...', 100);
// Each character appears with a delay - so cool!
๐ Method Chaining
rc.chain()
.success('First step completed!')
.warning('Be careful with step 2')
.info('Processing step 3...')
.party('All steps completed!');
๐งน Utility Methods
rc.clear(); // Clear the console
rc.showRainbow(); // Show the epic rainbow logo
๐ช Live Demo
Want to see Rainbow Console in action? Run the demo:
npm run demo
This will show you ALL the amazing features with live examples! ๐ฌ
๐งช Testing
Make sure everything works perfectly:
npm test
All tests are included and will verify every feature works as expected! โ
๐ก Pro Tips & Tricks
๐ฅ Combine Effects for Maximum Impact
rc.clear();
rc.showRainbow();
rc.party('Welcome to my amazing app!');
rc.rainbow('Everything is working perfectly!');
rc.box('Pro tip:\nChain methods for\neven more fun!');
๐ฏ Use in Different Scenarios
Starting your app:
rc.rocket('Server starting...');
rc.success('Server running on http://localhost:3000');
Error handling:
rc.error('Database connection failed');
rc.warning('Retrying in 5 seconds...');
Deployment celebrations:
rc.party('Deployment successful!');
rc.fire('Your app is now LIVE!');
rc.rainbow('Congratulations! ๐');
๐จ Create Custom Themes
// Morning theme
rc.color('โ๏ธ Good morning!', 'yellow');
rc.info('Starting daily tasks...');
// Night theme
rc.color('๐ Working late?', 'blue');
rc.magic('Code never sleeps!');
๐ Advanced Usage
๐ Progress Tracking
async function deployApp() {
rc.rocket('Starting deployment...');
for (let i = 0; i <= 100; i += 20) {
rc.progress(i, 'Deploying to production...');
await new Promise(resolve => setTimeout(resolve, 500));
}
rc.party('Deployment complete!');
}
๐ฌ Animated Sequences
async function showWelcome() {
rc.clear();
await rc.typewriter('Welcome to Rainbow Console!', 80);
rc.showRainbow();
rc.party('Let\'s make console logs fun again!');
}
๐ค Contributing
We'd love your help making Rainbow Console even more amazing!
- ๐ด Fork the repository
- ๐ฟ Create your feature branch (
git checkout -b amazing-feature
) - ๐พ Commit your changes (
git commit -m 'Add amazing feature'
) - ๐ Push to the branch (
git push origin amazing-feature
) - ๐ Open a Pull Request
๐ Changelog
v1.0.0 - The Rainbow Launch! ๐
- โจ Initial release with 16+ methods
- ๐จ Rainbow text effect
- ๐ Emoji integration for all messages
- ๐ Method chaining support
- โณ Progress bar animations
- โจ๏ธ Typewriter effect
- ๐ฆ Box messages
- ๐ฏ Custom color support
๐ License
MIT ยฉ [Your Name]
Made with โค๏ธ and lots of โ
๐ Show Your Support
If Rainbow Console made your console logs more fun, please โญ star this repo!
Happy coding! ๐
"Life is too short for boring console logs"
๐ Rainbow Console - Making debugging delightful since 2025! ๐