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.