Closed manatarms closed 7 years ago
Because the .stringify
function decodes binary characters into their ASCII literal escapes - such as "\u001b"
instead of the Unicode character.
I will comment on your other ticket as well. You shouldn't be doing things like this.
I thought this might be relevant here too. There is also another issue in https://github.com/chalk/strip-ansi/issues/9 I'm having a super weird issue. I have this object that is has computed keys. I have things that I want to highlight in this object so it has chalk colors on some keys. This works great. My object
I want to print these values to a file and would like to strip the ANSI. However, the strip function does not seem to be working.
Here is what I'm using to print to file.
The output looks like this
I did some debugging and the string checks in strip-ansi seem to be working. I thought you might have a better idea of what exactly is happening.
Thanks!