JSPM

rainbow-console-colors

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q31057F
  • License MIT

๐ŸŒˆ Transform your boring console.log into a rainbow of colors, animations, and emojis! Make debugging fun again! โœจ

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! โœจ

Version License Rainbow Fun

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!

  1. ๐Ÿด Fork the repository
  2. ๐ŸŒฟ Create your feature branch (git checkout -b amazing-feature)
  3. ๐Ÿ’พ Commit your changes (git commit -m 'Add amazing feature')
  4. ๐Ÿš€ Push to the branch (git push origin amazing-feature)
  5. ๐ŸŽ‰ 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! ๐ŸŒˆ