bump ansi-styles
the gray alias is now in ansi-styles
This commit is contained in:
parent
0f22588c59
commit
21143174c4
3 changed files with 8 additions and 8 deletions
4
index.js
4
index.js
|
|
@ -21,8 +21,6 @@ function build(_styles) {
|
|||
var styles = (function () {
|
||||
var ret = {};
|
||||
|
||||
ansiStyles.grey = ansiStyles.gray;
|
||||
|
||||
Object.keys(ansiStyles).forEach(function (key) {
|
||||
ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');
|
||||
|
||||
|
|
@ -54,7 +52,7 @@ function applyStyle() {
|
|||
return str;
|
||||
}
|
||||
|
||||
/*jshint validthis: true*/
|
||||
/*jshint validthis: true */
|
||||
var nestedStyles = this._styles;
|
||||
|
||||
var i = nestedStyles.length;
|
||||
|
|
|
|||
|
|
@ -40,14 +40,14 @@
|
|||
"text"
|
||||
],
|
||||
"dependencies": {
|
||||
"ansi-styles": "^1.1.0",
|
||||
"ansi-styles": "^2.0.0",
|
||||
"escape-string-regexp": "^1.0.1",
|
||||
"has-ansi": "^1.0.0",
|
||||
"strip-ansi": "^2.0.0",
|
||||
"supports-color": "^1.0.0"
|
||||
"supports-color": "^1.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"matcha": "^0.5.0",
|
||||
"matcha": "^0.6.0",
|
||||
"mocha": "*"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ if (!chalk.supportsColor) {
|
|||
|
||||
## Styles
|
||||
|
||||
### General
|
||||
### Modifiers
|
||||
|
||||
- `reset`
|
||||
- `bold`
|
||||
|
|
@ -149,7 +149,7 @@ if (!chalk.supportsColor) {
|
|||
- `hidden`
|
||||
- `strikethrough` *(not widely supported)*
|
||||
|
||||
### Text colors
|
||||
### Colors
|
||||
|
||||
- `black`
|
||||
- `red`
|
||||
|
|
@ -172,10 +172,12 @@ if (!chalk.supportsColor) {
|
|||
- `bgCyan`
|
||||
- `bgWhite`
|
||||
|
||||
|
||||
## 256-colors
|
||||
|
||||
Chalk does not support support anything other than the base eight colors, which guarantees it will work on all terminals and systems. Some terminals, specifically `xterm` compliant ones, will support the full range of 8-bit colors. For this the lower level [ansi-256-colors](https://github.com/jbnicolai/ansi-256-colors) package can be used.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue