index.js 220 B

1234567
  1. 'use strict';
  2. const ansiRegex = require('ansi-regex');
  3. const stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
  4. module.exports = stripAnsi;
  5. module.exports.default = stripAnsi;