UNPKG
@ka1do/kit
Version:
latest (0.0.3)
0.0.3
Kaido Kit
github.com/kaido-team/kaido-kit
kaido-team/kaido-kit
@ka1do/kit
/
helpers
/
node_modules
/
strip-ansi
/
index.js
5 lines
(3 loc)
•
154 B
JavaScript
View Raw
1
2
3
4
5
'use strict'
;
const
ansiRegex =
require
(
'ansi-regex'
);
module
.
exports
=
string
=>
typeof
string
===
'string'
?
string
.
replace
(
ansiRegex
(),
''
) :
string
;