Newer
Older
CVSS_3.0_GUI / node_modules / nwjs-builder-phoenix / node_modules / yargs / node_modules / string-width / node_modules / strip-ansi / index.js
root on 7 May 2019 161 bytes Initial commit
  1. 'use strict';
  2. var ansiRegex = require('ansi-regex')();
  3.  
  4. module.exports = function (str) {
  5. return typeof str === 'string' ? str.replace(ansiRegex, '') : str;
  6. };
Buy Me A Coffee