2019-09-18 08:11:16 +00:00
|
|
|
'use strict';
|
2019-11-07 13:11:05 +00:00
|
|
|
const ansiRegex = require('ansi-regex');
|
2019-09-18 08:11:16 +00:00
|
|
|
|
2019-11-07 13:11:05 +00:00
|
|
|
const stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
|
|
|
|
|
|
|
|
module.exports = stripAnsi;
|
|
|
|
module.exports.default = stripAnsi;
|