index.js 154 B

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