Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xpl committed Sep 18, 2018
1 parent e91cf98 commit 0a70434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ console.log (underline.bright.green ('foo' + dim.red.bgLightCyan ('bar'))) // me
### Nice Mode

```javascript
ansi = require ('ansicolor').nice
const ansi = require ('ansicolor').nice
```

The `('ansicolor').nice` export defines styling APIs on the `String` prototype directly. It uses an ad-hoc DSL (sort of) for infix-style string coloring. The `nice` is convenient, but not safe, avoid using it in public modules, as it may alter global objects causing potential hard-to-debug compatibility issues.
Expand Down

0 comments on commit 0a70434

Please sign in to comment.