cli-table3
cli-table3 copied to clipboard
feat: Add support truecolor, #352
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:coveragescript to package.json
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.