Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/crayon-js/crayon

πŸ–οΈ Terminal styling done light and fast.
https://github.com/crayon-js/crayon

256-colors ansi ansi-escape-codes cmd coloring console deno javascript js node node-js nodejs npm package rgb styling terminal ts typescript

Last synced: 4 days ago
JSON representation

πŸ–οΈ Terminal styling done light and fast.

Awesome Lists containing this project

README

        

[![deno github workflow](https://github.com/crayon-js/crayon/actions/workflows/deno.yml/badge.svg)](https://github.com/crayon-js/crayon/actions/workflows/deno.yml)

Crayon logo: Totally not creppy humanized crayon staring and waving hand at you

πŸ–οΈ Crayon

## πŸ“š About

Crayon is a terminal styling module written in TypeScript.\
From the ground up its goals are to be fast, relatively lightweight and modular.

#### πŸ–οΈ Crayon.js offers:

- ⚑ **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
- πŸ”— Support for nesting & chaining styles
- πŸͺ’ Not extending `String.prototype`
- 🌈 24bit (16.7mln - truecolor) and 8bit (256 - highcolor) color support

## βš™οΈ Usage

```ts
import crayon from "@crayon/crayon";

console.log(crayon.red("its red!"));
```

## 🀝 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.

**Crayon 4.x** follows [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/).\
If your pull request's code could introduce understandability trouble, please add comments to it.

## πŸ“ Licensing

This project is available under **MIT** License conditions.