Sign in
apache
/
incubator-marvin
/
refs/heads/poc
/
.
/
PoCs
/
nodejs_poc
/
node_modules
/
strip-ansi
/
index.js
blob: 099480fbfc54cb238d6d190fda653408fbf1ef7f [
file
] [
log
] [
blame
]
'use strict'
;
var
ansiRegex
=
require
(
'ansi-regex'
)();
module
.
exports
=
function
(
str
)
{
return
typeof
str
===
'string'
?
str
.
replace
(
ansiRegex
,
''
)
:
str
;
};