Last change
on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
369 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | /**
|
---|
| 2 | Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string.
|
---|
| 3 |
|
---|
| 4 | @example
|
---|
| 5 | ```
|
---|
| 6 | import stripAnsi = require('strip-ansi');
|
---|
| 7 |
|
---|
| 8 | stripAnsi('\u001B[4mUnicorn\u001B[0m');
|
---|
| 9 | //=> 'Unicorn'
|
---|
| 10 |
|
---|
| 11 | stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
|
---|
| 12 | //=> 'Click'
|
---|
| 13 | ```
|
---|
| 14 | */
|
---|
| 15 | declare function stripAnsi(string: string): string;
|
---|
| 16 |
|
---|
| 17 | export = stripAnsi;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.