ansi-styles 6.2.0 → 6.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -5
- package/package.json +1 -1
package/index.js
CHANGED
@@ -65,6 +65,11 @@ const styles = {
|
|
65
65
|
},
|
66
66
|
};
|
67
67
|
|
68
|
+
export const modifierNames = Object.keys(styles.modifier);
|
69
|
+
export const foregroundColorNames = Object.keys(styles.color);
|
70
|
+
export const backgroundColorNames = Object.keys(styles.bgColor);
|
71
|
+
export const colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
72
|
+
|
68
73
|
function assembleStyles() {
|
69
74
|
const codes = new Map();
|
70
75
|
|
@@ -216,8 +221,3 @@ function assembleStyles() {
|
|
216
221
|
const ansiStyles = assembleStyles();
|
217
222
|
|
218
223
|
export default ansiStyles;
|
219
|
-
|
220
|
-
export const modifierNames = Object.keys(styles.modifier);
|
221
|
-
export const foregroundColorNames = Object.keys(styles.color);
|
222
|
-
export const backgroundColorNames = Object.keys(styles.bgColor);
|
223
|
-
export const colorNames = [...foregroundColorNames, ...backgroundColorNames];
|