ansi-styles 4.2.0 → 4.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.
Files changed (2) hide show
  1. package/package.json +3 -2
  2. package/readme.md +0 -8
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "ansi-styles",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "ANSI escape codes for styling strings in the terminal",
5
5
  "license": "MIT",
6
6
  "repository": "chalk/ansi-styles",
7
+ "funding": "https://github.com/chalk/ansi-styles?sponsor=1",
7
8
  "author": {
8
9
  "name": "Sindre Sorhus",
9
10
  "email": "sindresorhus@gmail.com",
@@ -50,7 +51,7 @@
50
51
  "@types/color-convert": "^1.9.0",
51
52
  "ava": "^2.3.0",
52
53
  "svg-term-cli": "^2.1.1",
53
- "tsd": "^0.10.0",
54
+ "tsd": "^0.11.0",
54
55
  "xo": "^0.25.3"
55
56
  }
56
57
  }
package/readme.md CHANGED
@@ -6,14 +6,12 @@ You probably want the higher-level [chalk](https://github.com/chalk/chalk) modul
6
6
 
7
7
  <img src="screenshot.svg" width="900">
8
8
 
9
-
10
9
  ## Install
11
10
 
12
11
  ```
13
12
  $ npm install ansi-styles
14
13
  ```
15
14
 
16
-
17
15
  ## Usage
18
16
 
19
17
  ```js
@@ -36,7 +34,6 @@ console.log(style.color.ansi16m.hex('#abcdef') + 'Hello world!' + style.color.cl
36
34
 
37
35
  Each style has an `open` and `close` property.
38
36
 
39
-
40
37
  ## Styles
41
38
 
42
39
  ### Modifiers
@@ -88,7 +85,6 @@ Each style has an `open` and `close` property.
88
85
  - `bgCyanBright`
89
86
  - `bgWhiteBright`
90
87
 
91
-
92
88
  ## Advanced usage
93
89
 
94
90
  By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.
@@ -112,7 +108,6 @@ console.log(style.codes.get(36));
112
108
  //=> 39
113
109
  ```
114
110
 
115
-
116
111
  ## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728)
117
112
 
118
113
  `ansi-styles` uses the [`color-convert`](https://github.com/Qix-/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors.
@@ -141,18 +136,15 @@ style.color.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color foreground
141
136
  style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color background code
142
137
  ```
143
138
 
144
-
145
139
  ## Related
146
140
 
147
141
  - [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal
148
142
 
149
-
150
143
  ## Maintainers
151
144
 
152
145
  - [Sindre Sorhus](https://github.com/sindresorhus)
153
146
  - [Josh Junon](https://github.com/qix-)
154
147
 
155
-
156
148
  ---
157
149
 
158
150
  <div align="center">