add comments explaining 256 color configuration values
This commit is contained in:
parent
5c9f1e1f3e
commit
adca689ee4
1 changed files with 2 additions and 0 deletions
2
index.js
2
index.js
|
|
@ -6,7 +6,9 @@ var supportsColor = require('supports-color');
|
|||
var defineProps = Object.defineProperties;
|
||||
var isSimpleWindowsTerm = process.platform === 'win32' && !/^xterm/i.test(process.env.TERM);
|
||||
|
||||
// supportsColor.level -> ansiStyles.color[name] mapping
|
||||
var levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m'];
|
||||
// color-convert models to exclude from the Chalk API due to conflicts and such.
|
||||
var skipModels = ['gray'];
|
||||
|
||||
function Chalk(options) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue