New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ansi-256-colors

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansi-256-colors - npm Package Compare versions

Comparing version

to
1.0.3

LICENCE

2

package.json
{
"name": "ansi-256-colors",
"version": "1.0.2",
"version": "1.0.3",
"description": "256 xterm color codes",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -28,11 +28,32 @@ # ansi-256-colors [![Build Status](https://travis-ci.org/jbnicolai/ansi-256-colors.svg?branch=master)](https://travis-ci.org/jbnicolai/ansi-256-colors)

- 256 color codes
- `standard` containing the 8 default colors
- `bright` containing the 8 bright/bold default colors
- `rgb` containing 216 different red-green-blue values
- `grayscale` containing 24 tints ranging from white to black
- `getRgb(int, int, int)` return a colour in the rbg ranges 0 to 6
#### colors.\<fg|bg\>.getRgb(\<red\>[0..6], \<green\>[0..6], \<blue\>[0..6])
Returns the color code for the given red-green-blue value.
#### colors.\<fg|bg\>.codes[0..255]
All 256 color codes.
#### colors.\<fg|bg\>.standard[0..7]
The 8 base color codes, guaranteed to work on every system.
#### colors.\<fg|bg\>.bright[0..7]
The 8 base bright/bold color codes, guaranteed to work on every system.
#### colors.\<fg|bg\>.grayscale[0..23]
The 24 grayscales ranging from white to black.
#### colors.\<fg|bg\>.rgb[0..216]
The 216 varying color tints, where the order corresponds to the code-point 36\*`r` + 6\*`g` + `b`.
#### colors.reset
Closes any previously opened color codes.
## License
MIT © [Jbnicolai](http://jbnicolai.com)
MIT © [Joshua Boy Nicolai Appelman](http://jbnicolai.com)