Crayon is a terminal styling module written in TypeScript.
From the ground up its goals are to be fast, relatively lightweight and modular.
- โก Great performance
- ๐ฆ No dependencies
- ๐๏ธ Modularity (use what you need)
- ๐ง Familiar API (chalk-like)
- ๐ฆ Built-in color fallbacking
- ๐จ Automatic color detection via
@crayon/color-support
extension package
- ๐จ Automatic color detection via
- ๐ Support for nesting & chaining styles
- ๐ชข Not extending
String.prototype
- ๐ 24bit (16.7mln -ย truecolor) and 8bit (256 - highcolor) color support
import crayon from "@crayon/crayon";
console.log(crayon.red("its red!"));
Crayon is open for any contributions.
If you feel like you can enhance this project - please open an issue and/or pull request.
Code should be well document and easy to follow what's going on.
Crayon 4.x follows conventional commits.
If your pull request's code could introduce understandability trouble, please add comments to it.
This project is available under MIT License conditions.