Skip to content

Commit

Permalink
chore: a text correcture in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
webdiscus committed Feb 8, 2024
1 parent 25c500d commit b55d96b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ See the features [comparison](https://github.com/webdiscus/ansis#compare) and [b
- import chalk from 'chalk';
+ import chalk, { red } from 'ansis';

chalk.red.bold('Error!'); // <- the original Chalk code works fine
chalk.red.bold('Error!'); // <- the Chalk like syntax works fine
red.bold('Error!'); // <- the same result with Ansis
red.bold`Error!`; // <- the same result with Ansis
```
- Default import
Expand Down

0 comments on commit b55d96b

Please sign in to comment.