cli-table3 icon indicating copy to clipboard operation
cli-table3 copied to clipboard

feat: Add support truecolor, #352

Open webdiscus opened this issue 11 months ago • 1 comments

I'm the author of ansis.

This PR replaces the outdated @colors/colors (last update 2 years ago) package with smaller and faster - ansis, which supports truecolor.

Changes:

  • add a syntax for using hex color in style option, #352 For example: style: { border: ['hex(#FFD700)'], head: ['hex(#FFA500)', 'bgHex(#3d239d)'] }
  • add doumentation to the README how to use colors in tables, please see the new README
  • add tests for using colors
  • add missing test:coverage script to package.json

webdiscus avatar Feb 08 '25 23:02 webdiscus

Ansis works on Node.js since 14.0. Do we need to support legacy versions of Node.js 10.x and 12.x? If yes, then no problem, I can add support for 10.x and 12.x to Ansis as well.

webdiscus avatar Feb 09 '25 11:02 webdiscus