index.d.ts 369 B

1234567891011121314151617
  1. /**
  2. Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string.
  3. @example
  4. ```
  5. import stripAnsi = require('strip-ansi');
  6. stripAnsi('\u001B[4mUnicorn\u001B[0m');
  7. //=> 'Unicorn'
  8. stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
  9. //=> 'Click'
  10. ```
  11. */
  12. declare function stripAnsi(string: string): string;
  13. export = stripAnsi;