projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update .bashrc
[dotfiles/.git]
/
strip-ansi
/
index.js
1
'use strict';
2
var ansiRegex = require('ansi-regex')();
3
4
module.exports = function (str) {
5
return typeof str === 'string' ? str.replace(ansiRegex, '') : str;
6
};