projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update .bashrc
[dotfiles/.git]
/
node_modules
/
glob-parent
/
index.js
1
'use strict';
2
3
var path = require('path');
4
var isglob = require('is-glob');
5
6
module.exports = function globParent(str) {
7
str += 'a'; // preserves full path in case of trailing path separator
8
do {str = path.dirname(str)} while (isglob(str));
9
return str;
10
};