linx-simulator2/node_modules/strip-ansi/index.js
2019-09-18 11:11:16 +03:00

7 lines
161 B
JavaScript

'use strict';
var ansiRegex = require('ansi-regex')();
module.exports = function (str) {
return typeof str === 'string' ? str.replace(ansiRegex, '') : str;
};