Skip to content

Commit

Permalink
Merge pull request #32 from usmanyunusov/patch-1
Browse files Browse the repository at this point in the history
Added colorize-template diff example
  • Loading branch information
alexeyraspopov authored Oct 11, 2021
2 parents 9155409 + c21de58 commit 1ca2bd0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,11 @@ The library provides additional utilities to ensure the best results for the tas

4. You can use [`colorize-template`](https://github.com/usmanyunusov/colorize-template)
to replace chalk’s tagged template literal.

```diff
+ import { createColorize } from 'colorize-template'

+ let colorize = createColorize(pico)
- chalk.red.bold`full {yellow ${"text"}}`
+ colorize`{red.bold full {yellow ${"text"}}}`
```

0 comments on commit 1ca2bd0

Please sign in to comment.