2026-02-06 00:18:06 +08:00
parent b82b2675de
commit a8377f0994
5 changed files with 292 additions and 1 deletions

View File

@@ -1,2 +1,18 @@
# term-color-render
# 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]`