All files / node_modules/strip-ansi index.js

100% Statements 3/3
0% Branches 0/2
0% Functions 0/1
100% Lines 3/3
1 2 3 4 5 6 71x 1x   1x      
'use strict';
var ansiRegex = require('ansi-regex')();
 
module.exports = function (str) {
	return typeof str === 'string' ? str.replace(ansiRegex, '') : str;
};