Commit project
This commit is contained in:
parent
28471965a0
commit
3ac017a5ad
1030 changed files with 94062 additions and 0 deletions
10
node_modules/glob-parent/index.js
generated
vendored
Normal file
10
node_modules/glob-parent/index.js
generated
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
var path = require('path');
|
||||
var isglob = require('is-glob');
|
||||
|
||||
module.exports = function globParent(str) {
|
||||
str += 'a'; // preserves full path in case of trailing path separator
|
||||
do {str = path.dirname(str)} while (isglob(str));
|
||||
return str;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue