Opal-Estate-Pro/node_modules/strip-ansi/index.js
2019-09-13 11:27:52 +07:00

7 lines
161 B
JavaScript
Executable File

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