# @crayon.js/lite

> Terminal coloring done fast

Latest version **1.1.0** (published 2021-04-12) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @crayon.js/lite
pnpm add @crayon.js/lite
yarn add @crayon.js/lite
bun add @crayon.js/lite
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-04-12 |
| First published | 2021-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 17.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 57 |
| Author | Im-Beast |
| Maintainers | im-beast |
| Keywords | typescript, ts, color, colour, styling, formatting, style, ansi, rgb, 256, hsl, terminal, console, cli, cmd, tty, text, log |

## Links

- npm: https://www.npmjs.com/package/@crayon.js/lite
- Repository: https://github.com/Im-Beast/crayon.js
- Homepage: https://github.com/Im-Beast/crayon.js#readme
- Issues: https://github.com/Im-Beast/crayon.js/issues
- npm.io page: https://npm.io/package/@crayon.js/lite

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2021-04-12
- 1.0.0 — 2021-04-11

## README

<font size="6"><p align="center"><b>🖍 Crayon.js 🪶 Lite</b></p></font>
<hr />

## :books: About
##### Crayon.js Lite was created for users who won't use all of crayon.js features aka don't want to bloat their programs
It provides the same API as crayon.js however it removes some features

## Installation
```bash
npm install @crayon.js/lite #yarn add @crayon.js/lite
```

## :chart_with_upwards_trend: Differences
* No CSS Keywords support. <br />
  * Main thing about lite version is that it's stripped from css keywords, this means that: 
    ```ts
    import crayon = require('@crayon.js/lite')

    // crayon.olive('This would throw an error')
    // crayon.keyword('olive')('This would throw an error also')
    crayon.red('This still works')
    crayon.bold('This still works')
    crayon.red.bold('This still works')
    crayon.rgb(255,135,0)('this still works')
    ```
* Lower require times ~6/7ms -> ~4/5ms
* 2-3x Lower package size 

#### Learn more about crayon.js [here](https://github.com/Im-Beast/crayon.js)

## :handshake: Contributing
#### Feel free to fork, add commits and pull requests
<details>
<summary>To-do List</summary>
<ul>
  <li>Add jest coverage tests</li>
</ul>
</details>

## :memo: Licensing
#### This project is available under MIT License conditions.

---
_Source: https://npm.io/package/@crayon.js/lite · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
