better-npm-audit icon indicating copy to clipboard operation
better-npm-audit copied to clipboard

Weird formatting in table and handling of \n

Open alert-debug opened this issue 2 years ago • 0 comments

As mentioned in discussion #53, the npm audit security report table sometimes has unexpected spaces and missing letters. For example, a package with a dependency on ansi-regex (version 3.0.0 or similar) can cause the table to include this value in the Title column:

|  Inefficient Regular Expression Complexity i       |
│ chalk/ansi-regex                                   |

This is for an Ex.cluded vulnerability, so it appears as black text on a white background in a terminal with a light theme. In particular, this is MacOS Terminal Version 2.11 (440).

alert-debug avatar Dec 13 '21 10:12 alert-debug