UI for Zipcoin Blue
Tennessee Gibbs 0304752480 added pages to master 6 gadus atpakaļ
..
.npmignore added pages to master 6 gadus atpakaļ
.travis.yml added pages to master 6 gadus atpakaļ
LICENSE added pages to master 6 gadus atpakaļ
README.md added pages to master 6 gadus atpakaļ
index.js added pages to master 6 gadus atpakaļ
package.json added pages to master 6 gadus atpakaļ
test.js added pages to master 6 gadus atpakaļ

README.md

glob-parent Build Status Coverage Status

Javascript module to extract the non-magic parent path from a glob string.

NPM NPM

Usage

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'

// 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

ISC