14 lines
No EOL
268 B
JavaScript
Executable file
14 lines
No EOL
268 B
JavaScript
Executable file
'use strict';
|
|
var ansiRegex = require('ansi-regex')();
|
|
|
|
module.exports = function (str) {
|
|
return typeof str === 'string' ? str.replace(ansiRegex, '') : str;
|
|
};
|
|
|
|
|
|
|
|
//////////////////
|
|
// WEBPACK FOOTER
|
|
// ./~/strip-ansi/index.js
|
|
// module id = 2888
|
|
// module chunks = 4
|