chalk-extra
v0.2.0
Published
A collection of extra chalk features.
Readme
Chalk Extra
Chalk Extra is an enhanced version of the popular chalk library, providing a few predefined styles and a function to create custom styles.
Features
- Predefined Styles: A variety of text styles, including rainbow, zebra, trap and random.
- Custom Styles: Easily add your own custom styles.
Installation
Install Chalk Extra via npm:
npm install chalk-extraUsage
Import 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'));Adding Custom Styles
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'));License
This project is licensed under the MIT License.
