• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2const ansiRegex = require('ansi-regex');
3
4const stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
5
6module.exports = stripAnsi;
7module.exports.default = stripAnsi;
8