2018-11-22 16:41:46 +01:00
|
|
|
'use strict';
|
|
|
|
const ansiRegex = require('ansi-regex');
|
|
|
|
|
2019-07-02 16:05:15 +02:00
|
|
|
const stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
|
|
|
|
|
|
|
|
module.exports = stripAnsi;
|
|
|
|
module.exports.default = stripAnsi;
|