cat-bookmarker/assets/node_modules/strip-ansi/index.js

7 lines
161 B
JavaScript
Raw Normal View History

2024-03-10 18:52:04 +00:00
'use strict';
var ansiRegex = require('ansi-regex')();
module.exports = function (str) {
return typeof str === 'string' ? str.replace(ansiRegex, '') : str;
};