R8244/node_modules/chokidar/node_modules/glob-parent14df7e7ba70fsolothurn
R8244/node_modules/chokidar/node_modules/glob-parent
14df7e7ba70fsolothurn
README.md
README.md
glob-parent  
Javascript module to extract the non-magic parent path from a glob string.
 
Usage
sh npm install glob-parent --save
js 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' // if provided a non-glob path, returns the nearest dir globParent('path/foo/bar.js'); // 'path/foo' globParent('path/foo/'); // 'path/foo' globParent('path/foo'); // 'path' (see issue #3 for details)
Change Log
See release notes page on GitHub
License
c4science · Help