Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.d.ts « strip-ansi « node_modules « wrap-ansi « node_modules - github.com/austingebauer/devise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 44e954d0c724d82e07bbb484f05fcbf817347b03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string.

@example
```
import stripAnsi from 'strip-ansi';

stripAnsi('\u001B[4mUnicorn\u001B[0m');
//=> 'Unicorn'

stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
//=> 'Click'
```
*/
export default function stripAnsi(string: string): string;