Skip to content

Commit 52dcf65

Browse files
kevvasindresorhus
authored andcommitted
Add related streaming version of this module to the readme (#15)
1 parent c299056 commit 52dcf65

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ test('strip color from string', t => {
88
test('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+
1112
test('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
});

0 commit comments

Comments
 (0)