blob: 9a593dfcd1fd5c9e627d9ff2ed85a88df9a41a99 [file] [log] [blame]
Nikolay Vitkov95ea0452025-04-30 15:52:341'use strict';
2const ansiRegex = require('ansi-regex');
3
4module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;