ποΈ Crayon
π About
Crayon is terminal styling module written in Typescript.
From the ground up its goals is to be fast, relatively lightweight and modular.
ποΈ Crayon.js offers:
- β‘ High performance
- π¦ No dependencies
- π§βπ» Good code quality
- ποΈ Modularity (no unnecessary code)
- π§ Familiar API (chalk-like)
- π¦ Automatic color fallbacking
- π¨ Automatic color detection via
color_support
extension
- π¨ Automatic color detection via
- π Supported nesting & chaining
- πͺ’ Not extending
String.prototype
- π 24bit (16.7m -Β truecolor) and 8bit (256 - highcolor) color support
βοΈ Usage
- On deno:
// Remember to replace "version" with semver version
import { crayon } from "https://deno.land/x/crayon@version/mod.ts";
console.log(crayon.red("its red!"));
- On node:
import { crayon } from "crayon.js";
console.log(crayon.red("its red!"));
𧩠Extensions
To add new functionality to Crayon you can use ready or create your own extensions.
Crayonβs extensions are stored in src/extensions
π€ Contributing
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.
Since the start of development on Crayon 3.0 this project follows
conventional commits spec.
If your pull requestβs code could introduce understandability trouble,
please add comments to it.
π Licensing
This project is available under MIT License conditions.