How to use the level function from chalk

Find comprehensive JavaScript chalk.level code examples handpicked from public code repositorys.

129
130
131
132
133
134
135
136
137
138

```js
const ctx = new chalk.constructor({enabled: false});
```

### chalk.level

Color support is automatically detected, but you can override it by setting the `level` property. You should however only do this in your own code as it applies globally to all Chalk consumers.

If you need to change this in a reusable module, create a new instance:
fork icon837
star icon2
watch icon4

+ 3 other calls in file