index.js 154 B

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