You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,19 +210,19 @@ Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=
210
210
211
211
`chalkStderr` contains a separate instance configured with color support detected for `stderr` stream instead of `stdout`. Override rules from `supportsColor` apply to this too. `supportsColorStderr` is exposed for convenience.
212
212
213
-
### modifiers, foregroundColors, backgroundColors, and colors
213
+
### modifierNames, foregroundColorNames, backgroundColorNames, and colorNames
214
214
215
-
All supported style strings are exposed as an array of strings for convenience. `colors` is the combination of `foregroundColors` and `backgroundColors`.
215
+
All supported style strings are exposed as an array of strings for convenience. `colorNames` is the combination of `foregroundColorNames` and `backgroundColorNames`.
216
216
217
217
This can be useful if you wrap Chalk and need to validate input:
Copy file name to clipboardExpand all lines: source/index.d.ts
+83-6Lines changed: 83 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
// TODO: Make it this when TS suports that.
2
-
// import {ModifierName as Modifiers, ForegroundColorName as ForegroundColor, BackgroundColorName as BackgroundColor, ColorName as Color} from '#ansi-styles';
2
+
// import {ModifierName, ForegroundColor, BackgroundColor, ColorName} from '#ansi-styles';
3
3
// import {ColorInfo, ColorSupportLevel} from '#supports-color';
0 commit comments