2025-04-02 06:50:39 -04:00

6 lines
158 B
JavaScript

'use strict';
const ansiRegex = require('ansi-regex');
module.exports = (string) =>
typeof string === 'string' ? string.replace(ansiRegex(), '') : string;