File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ stripAnsi('\u001B[4mUnicorn\u001B[0m');
2323## Related
2424
2525- [ strip-ansi-cli] ( https://github.com/chalk/strip-ansi-cli ) - CLI for this module
26+ - [ strip-ansi-stream] ( https://github.com/chalk/strip-ansi-stream ) - Streaming version of this module
2627- [ has-ansi] ( https://github.com/chalk/has-ansi ) - Check if a string has ANSI escape codes
2728- [ ansi-regex] ( https://github.com/chalk/ansi-regex ) - Regular expression for matching ANSI escape codes
2829- [ chalk] ( https://github.com/chalk/chalk ) - Terminal string styling done right
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ test('strip color from string', t => {
88test ( 'strip color from ls command' , t => {
99 t . is ( m ( '\u001B[00;38;5;244m\u001B[m\u001B[00;38;5;33mfoo\u001B[0m' ) , 'foo' ) ;
1010} ) ;
11+
1112test ( 'strip reset;setfg;setbg;italics;strike;underline sequence from string' , t => {
1213 t . is ( m ( '\u001B[0;33;49;3;9;4mbar\u001B[0m' ) , 'bar' ) ;
1314} ) ;
You can’t perform that action at this time.
0 commit comments