Files
term-color-render/README.md

19 lines
419 B
Markdown

# term color render
```js
import {renderColor} from "./index";
console.log(renderColor('hello [red]red world[/red], [bold][green]bold and green text[/green][/bold]'));
```
Supported colors:
- `[red]red text[/red]`
- `[blue]blue text[/blue]`
- `[green]green text[/green]`
- `[yellow]yellow text[/yellow]`
- `[cyan]cyan text[/cyan]`
- `[pink]cyan text[/pink]`
- `[bold]bold text[/bold]`
- `[under]under text[/under]`