1
0
mirror of https://github.com/actions/setup-node synced 2025-05-09 01:17:49 +00:00
setup-node/node_modules/strip-ansi/index.js
eric sciple 2b95e76931 .
2020-01-24 12:20:19 -05:00

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;