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 styles = (function () {
|
||||||
var ret = {};
|
var ret = {};
|
||||||
|
|
||||||
ansiStyles.grey = ansiStyles.gray;
|
|
||||||
|
|
||||||
Object.keys(ansiStyles).forEach(function (key) {
|
Object.keys(ansiStyles).forEach(function (key) {
|
||||||
ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');
|
ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');
|
||||||
|
|
||||||
|
|
@ -54,7 +52,7 @@ function applyStyle() {
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*jshint validthis: true*/
|
/*jshint validthis: true */
|
||||||
var nestedStyles = this._styles;
|
var nestedStyles = this._styles;
|
||||||
|
|
||||||
var i = nestedStyles.length;
|
var i = nestedStyles.length;
|
||||||
|
|
|
||||||
|
|
@ -40,14 +40,14 @@
|
||||||
"text"
|
"text"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ansi-styles": "^1.1.0",
|
"ansi-styles": "^2.0.0",
|
||||||
"escape-string-regexp": "^1.0.1",
|
"escape-string-regexp": "^1.0.1",
|
||||||
"has-ansi": "^1.0.0",
|
"has-ansi": "^1.0.0",
|
||||||
"strip-ansi": "^2.0.0",
|
"strip-ansi": "^2.0.0",
|
||||||
"supports-color": "^1.0.0"
|
"supports-color": "^1.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"matcha": "^0.5.0",
|
"matcha": "^0.6.0",
|
||||||
"mocha": "*"
|
"mocha": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ if (!chalk.supportsColor) {
|
||||||
|
|
||||||
## Styles
|
## Styles
|
||||||
|
|
||||||
### General
|
### Modifiers
|
||||||
|
|
||||||
- `reset`
|
- `reset`
|
||||||
- `bold`
|
- `bold`
|
||||||
|
|
@ -149,7 +149,7 @@ if (!chalk.supportsColor) {
|
||||||
- `hidden`
|
- `hidden`
|
||||||
- `strikethrough` *(not widely supported)*
|
- `strikethrough` *(not widely supported)*
|
||||||
|
|
||||||
### Text colors
|
### Colors
|
||||||
|
|
||||||
- `black`
|
- `black`
|
||||||
- `red`
|
- `red`
|
||||||
|
|
@ -172,10 +172,12 @@ if (!chalk.supportsColor) {
|
||||||
- `bgCyan`
|
- `bgCyan`
|
||||||
- `bgWhite`
|
- `bgWhite`
|
||||||
|
|
||||||
|
|
||||||
## 256-colors
|
## 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.
|
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
|
## License
|
||||||
|
|
||||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue