Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ansi-styles

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansi-styles - npm Package Compare versions

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 @@

7

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc