ansi-styles
Advanced tools
Comparing version 3.0.0 to 3.1.0
29
index.js
@@ -41,3 +41,12 @@ 'use strict'; | ||
white: [37, 39], | ||
gray: [90, 39] | ||
gray: [90, 39], | ||
// Bright color | ||
redBright: [91, 39], | ||
greenBright: [92, 39], | ||
yellowBright: [93, 39], | ||
blueBright: [94, 39], | ||
magentaBright: [95, 39], | ||
cyanBright: [96, 39], | ||
whiteBright: [97, 39] | ||
}, | ||
@@ -52,7 +61,17 @@ bgColor: { | ||
bgCyan: [46, 49], | ||
bgWhite: [47, 49] | ||
bgWhite: [47, 49], | ||
// Bright color | ||
bgBlackBright: [100, 49], | ||
bgRedBright: [101, 49], | ||
bgGreenBright: [102, 49], | ||
bgYellowBright: [103, 49], | ||
bgBlueBright: [104, 49], | ||
bgMagentaBright: [105, 49], | ||
bgCyanBright: [106, 49], | ||
bgWhiteBright: [107, 49] | ||
} | ||
}; | ||
// fix humans | ||
// Fix humans | ||
styles.color.grey = styles.color.gray; | ||
@@ -66,6 +85,8 @@ | ||
styles[styleName] = group[styleName] = { | ||
styles[styleName] = { | ||
open: `\u001B[${style[0]}m`, | ||
close: `\u001B[${style[1]}m` | ||
}; | ||
group[styleName] = styles[styleName]; | ||
}); | ||
@@ -72,0 +93,0 @@ |
{ | ||
"name": "ansi-styles", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "ANSI escape codes for styling strings in the terminal", | ||
@@ -53,7 +53,8 @@ "license": "MIT", | ||
"ava": "*", | ||
"babel-polyfill": "^6.23.0", | ||
"xo": "*" | ||
}, | ||
"xo": { | ||
"esnext": true | ||
"ava": { | ||
"require": "babel-polyfill" | ||
} | ||
} |
@@ -65,2 +65,11 @@ # ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles) | ||
- `blackBright` | ||
- `redBright` | ||
- `greenBright` | ||
- `yellowBright` | ||
- `blueBright` | ||
- `magentaBright` | ||
- `cyanBright` | ||
- `whiteBright` | ||
### Background colors | ||
@@ -77,2 +86,10 @@ | ||
- `bgBlackBright` | ||
- `bgRedBright` | ||
- `bgGreenBright` | ||
- `bgYellowBright` | ||
- `bgBlueBright` | ||
- `bgMagentaBright` | ||
- `bgCyanBright` | ||
- `bgWhiteBright` | ||
@@ -79,0 +96,0 @@ ## Advanced usage |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8674
120
136
0
3