Add enum Level to JavaScript
Fix https://github.com/chalk/chalk/issues/363
This commit is contained in:
parent
066c38a685
commit
095d11ac15
1 changed files with 11 additions and 0 deletions
|
|
@ -223,4 +223,15 @@ chalk.supportsColor = stdoutColor;
|
||||||
chalk.stderr = Chalk({level: stderrColor ? stderrColor.level : 0}); // eslint-disable-line new-cap
|
chalk.stderr = Chalk({level: stderrColor ? stderrColor.level : 0}); // eslint-disable-line new-cap
|
||||||
chalk.stderr.supportsColor = stderrColor;
|
chalk.stderr.supportsColor = stderrColor;
|
||||||
|
|
||||||
|
chalk.Level = {
|
||||||
|
None: 0,
|
||||||
|
Basic: 1,
|
||||||
|
Ansi256: 2,
|
||||||
|
TrueColor: 3,
|
||||||
|
0: 'None',
|
||||||
|
1: 'Basic',
|
||||||
|
2: 'Ansi256',
|
||||||
|
3: 'TrueColor'
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = chalk;
|
module.exports = chalk;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue