Skip to content

About

A collection of extra chalk features, such as figlet and gradient string support.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

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-extra

Usage

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.

About

A collection of extra chalk features, such as figlet and gradient string support.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages