Add enum Level to JavaScript

Fix https://github.com/chalk/chalk/issues/363
This commit is contained in:
khai96_ 2019-09-22 18:56:29 +07:00
parent 066c38a685
commit 095d11ac15

View file

@ -223,4 +223,15 @@ chalk.supportsColor = stdoutColor;
chalk.stderr = Chalk({level: stderrColor ? stderrColor.level : 0}); // eslint-disable-line new-cap
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;