Skip to content

Commit

Permalink
The default for opts.colorize is chalk.supportsColor
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Aug 8, 2018
1 parent 4a06388 commit 079ff4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Readme.md
Expand Up @@ -113,7 +113,7 @@ with keys corresponding to the options described in [CLI Arguments](#cliargs):

```js
{
colorize: false, // --colorize
colorize: chalk.supportsColor, // --colorize
crlf: false, // --crlf
errorLikeObjectKeys: ['err', 'error'], // --errorLikeObjectKeys
errorProps: '', // --errorProps
Expand All @@ -124,6 +124,8 @@ with keys corresponding to the options described in [CLI Arguments](#cliargs):
}
```

The `colorize` default follows
[`chalk.supportsColor](https://www.npmjs.com/package/chalk#chalksupportscolor).

<a id="license"><a>
## License
Expand Down
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -19,7 +19,7 @@ const levels = {
}

const defaultOptions = {
colorize: false,
colorize: chalk.supportsColor,
crlf: false,
errorLikeObjectKeys: ['err', 'error'],
errorProps: '',
Expand Down

0 comments on commit 079ff4c

Please sign in to comment.