Repository URL to install this package:
|
Version:
1.3.1-1468329898 ▾
|
| .. |
| node_modules |
| index.js |
| package.json |
| README.md |
| LICENSE |
| test.js |
Javascript module to extract the non-magic parent path from a glob string.
npm install glob-parent --save
var globParent = require('glob-parent'); globParent('path/to/*.js'); // 'path/to' globParent('/root/path/to/*.js'); // '/root/path/to' globParent('/*.js'); // '/' globParent('*.js'); // '.' globParent('**/*.js'); // '.' globParent('path/{to,from}'); // 'path' globParent('path/!(to|from)'); // 'path' globParent('path/?(to|from)'); // 'path' globParent('path/+(to|from)'); // 'path' globParent('path/*(to|from)'); // 'path' globParent('path/@(to|from)'); // 'path' globParent('path/**/*'); // 'path'
See release notes page on GitHub