micro-ansi
Version:
Easily use 4 bit ANSI colors in your HTML or terminal
36 lines (28 loc) • 1.79 kB
Markdown
# micro-ansi
Easily use 4 bit ANSI colors in your HTML or terminal
## Why
Well, because I can. And as lovely as Chalk is, it's a bit over-engineered for use with Next.js and gives me more errors than it was worth.
<ul>
<li>Use with TypeScript or JavaScript.</li>
<li>NextJS safe.</li>
<li>Super simple. It's literally tiny.</li>
</ul>
## Installation
```sh
npm import micro-ansi
```
## Usage
```javascript
ansi.color("Text goes here")
```
## Color Examples
| Normal Color | Bright Color |
|--------------|--------------|
|  `black` |  `brightBlack` |
|  `red` |  `brightRed` |
|  `green` |  `brightGreen` |
|  `yellow` |  `brightYellow` |
|  `blue` |  `brightBlue` |
|  `magenta` |  `brightMagenta` |
|  `cyan` |  `brightCyan` |
|  `white` |  `brightWhite` |