Skip to content

3.0.0

Compare
Choose a tag to compare
@msanguineti msanguineti released this 29 Jun 12:22
· 34 commits to main since this release
a07e864

What's Changed

  • Improved performance (thanks to colorette and picocolors)
  • NO_COLOR support (also --no-color)
  • Simplified API
  • Color support override
  • Proper handling of bold and dim modifiers
  • Proper handling of reset (optional)

BREAKING CHANGES

This version breaks compatibility with previous versions!

  • renamed fude function to Fude. Now this function takes an object ({level: number|string}) and returns a set of coloring/formatting functions for the selected level. Used to override the color support level, similar to what Chalk({level}) does.
  • some coloring functions have their named changed to better conform with other CLI text coloring libraries.

Full Changelog: v2.0.0...v3.0.0