Skip to content

Releases: chalk/ansi-styles

v4.2.0

12 Nov 11:20
Compare
Choose a tag to compare

v4.1.0...v4.2.0

v4.1.0

21 Aug 23:36
Compare
Choose a tag to compare

Improvements:

v4.0.0...v4.1.0

v4.0.0

31 May 07:10
Compare
Choose a tag to compare

Breaking:

Enhancements:

v3.2.1...v4.0.0

3.0.0

17 Jan 09:29
Compare
Choose a tag to compare

This major release includes 256 and 16 million color codes via the color-convert module.
See all possible conversions.

This module now requires Node.js 4 or higher.

Breaking changes

- ansiStyles.colors
+ ansiStyles.color

- ansiStyles.bgColors
+ ansiStyles.bgColor

- ansiStyles.modifiers
+ ansiStyles.modifier

New features

# 16 color codes
+ ansiStyles.color.ansi.rgb(r, g, b)
+ ansiStyles.color.ansi.hsl(h, s, l)
+ ansiStyles.color.ansi.hex('#ABCDEF')

# 256 color codes
+ ansiStyles.color.ansi256.rgb(r, g, b)
+ ansiStyles.color.ansi256.hsl(h, s, l)
+ ansiStyles.color.ansi256.hex('#ABCDEF')

# 16 million (RGB) color codes
+ ansiStyles.color.ansi16m.rgb(r, g, b)
+ ansiStyles.color.ansi16m.hsl(h, s, l)
+ ansiStyles.color.ansi16m.hex('#ABCDEF')

Changes

v2.2.1...v3.0.0