This commit is contained in:
18
README.md
18
README.md
@@ -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]`
|
||||
|
||||
Reference in New Issue
Block a user