mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Current file header is : /*! showdown v 2.0.0-alpha1 - 25-09-2018 */ Official 2.0.0-alpha doesn't match neither on content nor date :( Considering date we would be at 1.8.7, but it is also quite different (and has vulnerabilities) In consequence switching to 2.0.0.
18 lines
369 B
TypeScript
18 lines
369 B
TypeScript
/**
|
|
Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string.
|
|
|
|
@example
|
|
```
|
|
import stripAnsi = require('strip-ansi');
|
|
|
|
stripAnsi('\u001B[4mUnicorn\u001B[0m');
|
|
//=> 'Unicorn'
|
|
|
|
stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
|
|
//=> 'Click'
|
|
```
|
|
*/
|
|
declare function stripAnsi(string: string): string;
|
|
|
|
export = stripAnsi;
|