setup-php/node_modules/strip-ansi/index.js
Shivam Mathur 8f9786b73f init
2019-09-06 05:17:43 +05:30

8 lines
220 B
JavaScript

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