Chalk Extra is an enhanced version of the popular chalk library, providing a few predefined styles and a function to create custom styles.
- Predefined Styles: A variety of text styles, including rainbow, zebra, trap and random.
- Custom Styles: Easily add your own custom styles.
Install Chalk Extra via npm:
npm install chalk-extraImport Chalk Extra into your project and start using its features:
import chalk from 'chalk-extra';
console.log(chalk.rainbow('Rainbow Text'));
console.log(chalk.random('Random Colors'));You can add your own custom styles using the addStyle method:
chalk.addStyle('customStyle', (text) => chalk.rgb(50, 100, 50)(text));
console.log(chalk.customStyle('Custom Style'));This project is licensed under the MIT License.