initial commit
This commit is contained in:
9
node_modules/strip-ansi/index.js
generated
vendored
Normal file
9
node_modules/strip-ansi/index.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import ansiRegex from 'ansi-regex';
|
||||
|
||||
export default function stripAnsi(string) {
|
||||
if (typeof string !== 'string') {
|
||||
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
||||
}
|
||||
|
||||
return string.replace(ansiRegex(), '');
|
||||
}
|
||||
Reference in New Issue
Block a user