Skip to content

Commit

Permalink
Add related streaming version of this module to the readme (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevva authored and sindresorhus committed Sep 20, 2017
1 parent c299056 commit 52dcf65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions readme.md
Expand Up @@ -23,6 +23,7 @@ stripAnsi('\u001B[4mUnicorn\u001B[0m');
## Related

- [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module
- [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Streaming version of this module
- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
Expand Down
1 change: 1 addition & 0 deletions test.js
Expand Up @@ -8,6 +8,7 @@ test('strip color from string', t => {
test('strip color from ls command', t => {
t.is(m('\u001B[00;38;5;244m\u001B[m\u001B[00;38;5;33mfoo\u001B[0m'), 'foo');
});

test('strip reset;setfg;setbg;italics;strike;underline sequence from string', t => {
t.is(m('\u001B[0;33;49;3;9;4mbar\u001B[0m'), 'bar');
});

0 comments on commit 52dcf65

Please sign in to comment.