The README on master documents ansis-based styling behavior, but the current npm release still ships the older @colors/colors implementation.
This is confusing because npm latest is still 0.6.5, while master appears to be prepared as 0.7.0.
What I observed:
master/package.json says version: 0.7.0 and depends on ansis@3.10.0.
master/src/cell.js uses require("ansis").
- npm
cli-table3@0.6.5 depends on string-width and has optional dependency @colors/colors@1.5.0.
- npm
cli-table3@0.6.5/src/cell.js uses require("@colors/colors/safe").
This matters for color-control behavior. The README/source imply current ansis behavior, but installed package behavior differs. For example, with npm 0.6.5, table styling still emits ANSI color codes under NO_COLOR=1:
process.env.NO_COLOR = "1"
const Table = require("cli-table3")
const table = new Table({
head: ["Name"],
style: { head: ["yellow"], border: ["grey"] },
})
table.push(["Example"])
console.log(table.toString())
Expected from current README/source: no color output, because ansis supports NO_COLOR.
Actual with npm 0.6.5: ANSI color codes are still emitted because @colors/colors is used.
Could you either:
- publish the ansis-based
0.7.0, or
- update README/docs to clearly indicate ansis behavior is unreleased / only on
master?
Thanks.
The README on
masterdocuments ansis-based styling behavior, but the current npm release still ships the older@colors/colorsimplementation.This is confusing because npm latest is still
0.6.5, whilemasterappears to be prepared as0.7.0.What I observed:
master/package.jsonsaysversion: 0.7.0and depends onansis@3.10.0.master/src/cell.jsusesrequire("ansis").cli-table3@0.6.5depends onstring-widthand has optional dependency@colors/colors@1.5.0.cli-table3@0.6.5/src/cell.jsusesrequire("@colors/colors/safe").This matters for color-control behavior. The README/source imply current ansis behavior, but installed package behavior differs. For example, with npm
0.6.5, table styling still emits ANSI color codes underNO_COLOR=1:Expected from current README/source: no color output, because ansis supports
NO_COLOR.Actual with npm
0.6.5: ANSI color codes are still emitted because@colors/colorsis used.Could you either:
0.7.0, ormaster?Thanks.