Newer
Older
alert / js / node_modules / strip-ansi / index.js
@Réz István Réz István on 18 Nov 2021 220 bytes first commit
'use strict';
const ansiRegex = require('ansi-regex');

const stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;

module.exports = stripAnsi;
module.exports.default = stripAnsi;