Usage Examples
Basic Logging
1import { hbhconsole } from 'hbh-terminal';3hbhconsole.log('Hello world!');4hbhconsole.success('✅ Success message');
Styled Text
1import { chalk } from 'hbh-terminal';3console.log(chalk.red.bold('Bold Red Text'));4console.log(chalk.rgb(255, 100, 0)('🔥 RGB Styled Text'));5console.log(chalk.gradientText('Gradient Text', 'purple', 'orange'));
Animated Text
1import { Animations } from 'hbh-terminal';3Animations.Color.HUE('Hue Rotation 🌈', { step: 10 });4Animations.Color.RGB('RGB Cycling!', { step: 20 });5Animations.Color.HEX('HEX Animation 💖', { step: 15 });6Animations.Color.All('Unified Mode ⚡', { mode: 'hue', step: 12 });
Typewriter Effect
1import { Animations } from 'hbh-terminal';3Animations.Typewriter.typewriter('Typing animation...', {4 speed: 60,5 loop: 2,6 color: 'cyan',7 cursor: '|',8 eraseOnLoop: true9});