/node_modules/ansi-regex Depends on vulnerable versions of ansi-regexnode_modules/log-update/node_modules/strip-ansi Depends on vulnerableversions of strip-ansi
ANSI_BLACK = "\u001B[30m"; public staticfinal String ANSI_GREEN = "\u001B[32m";
public static final String ANSI_YELLOW = "\u001B[33m";escape codes defined above
我发现了一个有趣的行为,那就是console.log为我剥离字符。例如,下面是我的nodejs上的调试窗口。在这个调试窗口中,您可以看到line的值包含一些Ansi编码字符。但是当我通过console.log将它打印到终端时,我得到了这个输出> var prompt="dbenvy> "。它没有任何ansi字符。我不明白是什么导致了这种行为。我不确定这是与console.log还是terminal有关
path /home/vagrant/Code/matt-fm/node_modules/yargs/node_modules/wrap-ansi/node_modules/strip-ansi/package.jsonENOENT: no such file or directory, open '/home/vagrant/Code/matt-fm/node_modules/y