ansi-styles 4.2.1 → 4.3.0
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.d.ts +150 -2
- package/package.json +1 -2
- package/readme.md +5 -11
package/index.d.ts
CHANGED
@@ -1,4 +1,152 @@
|
|
1
|
-
|
1
|
+
declare type CSSColor =
|
2
|
+
| 'aliceblue'
|
3
|
+
| 'antiquewhite'
|
4
|
+
| 'aqua'
|
5
|
+
| 'aquamarine'
|
6
|
+
| 'azure'
|
7
|
+
| 'beige'
|
8
|
+
| 'bisque'
|
9
|
+
| 'black'
|
10
|
+
| 'blanchedalmond'
|
11
|
+
| 'blue'
|
12
|
+
| 'blueviolet'
|
13
|
+
| 'brown'
|
14
|
+
| 'burlywood'
|
15
|
+
| 'cadetblue'
|
16
|
+
| 'chartreuse'
|
17
|
+
| 'chocolate'
|
18
|
+
| 'coral'
|
19
|
+
| 'cornflowerblue'
|
20
|
+
| 'cornsilk'
|
21
|
+
| 'crimson'
|
22
|
+
| 'cyan'
|
23
|
+
| 'darkblue'
|
24
|
+
| 'darkcyan'
|
25
|
+
| 'darkgoldenrod'
|
26
|
+
| 'darkgray'
|
27
|
+
| 'darkgreen'
|
28
|
+
| 'darkgrey'
|
29
|
+
| 'darkkhaki'
|
30
|
+
| 'darkmagenta'
|
31
|
+
| 'darkolivegreen'
|
32
|
+
| 'darkorange'
|
33
|
+
| 'darkorchid'
|
34
|
+
| 'darkred'
|
35
|
+
| 'darksalmon'
|
36
|
+
| 'darkseagreen'
|
37
|
+
| 'darkslateblue'
|
38
|
+
| 'darkslategray'
|
39
|
+
| 'darkslategrey'
|
40
|
+
| 'darkturquoise'
|
41
|
+
| 'darkviolet'
|
42
|
+
| 'deeppink'
|
43
|
+
| 'deepskyblue'
|
44
|
+
| 'dimgray'
|
45
|
+
| 'dimgrey'
|
46
|
+
| 'dodgerblue'
|
47
|
+
| 'firebrick'
|
48
|
+
| 'floralwhite'
|
49
|
+
| 'forestgreen'
|
50
|
+
| 'fuchsia'
|
51
|
+
| 'gainsboro'
|
52
|
+
| 'ghostwhite'
|
53
|
+
| 'gold'
|
54
|
+
| 'goldenrod'
|
55
|
+
| 'gray'
|
56
|
+
| 'green'
|
57
|
+
| 'greenyellow'
|
58
|
+
| 'grey'
|
59
|
+
| 'honeydew'
|
60
|
+
| 'hotpink'
|
61
|
+
| 'indianred'
|
62
|
+
| 'indigo'
|
63
|
+
| 'ivory'
|
64
|
+
| 'khaki'
|
65
|
+
| 'lavender'
|
66
|
+
| 'lavenderblush'
|
67
|
+
| 'lawngreen'
|
68
|
+
| 'lemonchiffon'
|
69
|
+
| 'lightblue'
|
70
|
+
| 'lightcoral'
|
71
|
+
| 'lightcyan'
|
72
|
+
| 'lightgoldenrodyellow'
|
73
|
+
| 'lightgray'
|
74
|
+
| 'lightgreen'
|
75
|
+
| 'lightgrey'
|
76
|
+
| 'lightpink'
|
77
|
+
| 'lightsalmon'
|
78
|
+
| 'lightseagreen'
|
79
|
+
| 'lightskyblue'
|
80
|
+
| 'lightslategray'
|
81
|
+
| 'lightslategrey'
|
82
|
+
| 'lightsteelblue'
|
83
|
+
| 'lightyellow'
|
84
|
+
| 'lime'
|
85
|
+
| 'limegreen'
|
86
|
+
| 'linen'
|
87
|
+
| 'magenta'
|
88
|
+
| 'maroon'
|
89
|
+
| 'mediumaquamarine'
|
90
|
+
| 'mediumblue'
|
91
|
+
| 'mediumorchid'
|
92
|
+
| 'mediumpurple'
|
93
|
+
| 'mediumseagreen'
|
94
|
+
| 'mediumslateblue'
|
95
|
+
| 'mediumspringgreen'
|
96
|
+
| 'mediumturquoise'
|
97
|
+
| 'mediumvioletred'
|
98
|
+
| 'midnightblue'
|
99
|
+
| 'mintcream'
|
100
|
+
| 'mistyrose'
|
101
|
+
| 'moccasin'
|
102
|
+
| 'navajowhite'
|
103
|
+
| 'navy'
|
104
|
+
| 'oldlace'
|
105
|
+
| 'olive'
|
106
|
+
| 'olivedrab'
|
107
|
+
| 'orange'
|
108
|
+
| 'orangered'
|
109
|
+
| 'orchid'
|
110
|
+
| 'palegoldenrod'
|
111
|
+
| 'palegreen'
|
112
|
+
| 'paleturquoise'
|
113
|
+
| 'palevioletred'
|
114
|
+
| 'papayawhip'
|
115
|
+
| 'peachpuff'
|
116
|
+
| 'peru'
|
117
|
+
| 'pink'
|
118
|
+
| 'plum'
|
119
|
+
| 'powderblue'
|
120
|
+
| 'purple'
|
121
|
+
| 'rebeccapurple'
|
122
|
+
| 'red'
|
123
|
+
| 'rosybrown'
|
124
|
+
| 'royalblue'
|
125
|
+
| 'saddlebrown'
|
126
|
+
| 'salmon'
|
127
|
+
| 'sandybrown'
|
128
|
+
| 'seagreen'
|
129
|
+
| 'seashell'
|
130
|
+
| 'sienna'
|
131
|
+
| 'silver'
|
132
|
+
| 'skyblue'
|
133
|
+
| 'slateblue'
|
134
|
+
| 'slategray'
|
135
|
+
| 'slategrey'
|
136
|
+
| 'snow'
|
137
|
+
| 'springgreen'
|
138
|
+
| 'steelblue'
|
139
|
+
| 'tan'
|
140
|
+
| 'teal'
|
141
|
+
| 'thistle'
|
142
|
+
| 'tomato'
|
143
|
+
| 'turquoise'
|
144
|
+
| 'violet'
|
145
|
+
| 'wheat'
|
146
|
+
| 'white'
|
147
|
+
| 'whitesmoke'
|
148
|
+
| 'yellow'
|
149
|
+
| 'yellowgreen';
|
2
150
|
|
3
151
|
declare namespace ansiStyles {
|
4
152
|
interface ColorConvert {
|
@@ -21,7 +169,7 @@ declare namespace ansiStyles {
|
|
21
169
|
/**
|
22
170
|
@param keyword - A CSS color name.
|
23
171
|
*/
|
24
|
-
keyword(keyword:
|
172
|
+
keyword(keyword: CSSColor): string;
|
25
173
|
|
26
174
|
/**
|
27
175
|
The HSL color space.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ansi-styles",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.3.0",
|
4
4
|
"description": "ANSI escape codes for styling strings in the terminal",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": "chalk/ansi-styles",
|
@@ -44,7 +44,6 @@
|
|
44
44
|
"text"
|
45
45
|
],
|
46
46
|
"dependencies": {
|
47
|
-
"@types/color-name": "^1.1.1",
|
48
47
|
"color-convert": "^2.0.1"
|
49
48
|
},
|
50
49
|
"devDependencies": {
|
package/readme.md
CHANGED
@@ -145,14 +145,8 @@ style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color backgroun
|
|
145
145
|
- [Sindre Sorhus](https://github.com/sindresorhus)
|
146
146
|
- [Josh Junon](https://github.com/qix-)
|
147
147
|
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
</b>
|
154
|
-
<br>
|
155
|
-
<sub>
|
156
|
-
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
157
|
-
</sub>
|
158
|
-
</div>
|
148
|
+
## For enterprise
|
149
|
+
|
150
|
+
Available as part of the Tidelift Subscription.
|
151
|
+
|
152
|
+
The maintainers of `ansi-styles` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-ansi-styles?utm_source=npm-ansi-styles&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|