{ "_id": "glob-base", "_rev": "12-6d78b6fe6946e3ab5eac0c9a23e6fedf", "name": "glob-base", "description": "Returns an object with the (non-glob) base path and the actual pattern.", "dist-tags": { "latest": "0.3.0" }, "versions": { "0.1.0": { "name": "glob-base", "description": "Split a glob into a base path and a pattern.", "version": "0.1.0", "homepage": "https://github.com/jonschlinkert/glob-base", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git://github.com/jonschlinkert/glob-base.git" }, "bugs": { "url": "https://github.com/jonschlinkert/glob-base/issues" }, "license": { "type": "MIT", "url": "https://github.com/jonschlinkert/glob-base/blob/master/LICENSE" }, "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "glob-parent": "^1.2.0", "is-glob": "^1.1.1" }, "devDependencies": { "mocha": "*" }, "keywords": [ "base", "directory", "dirname", "expression", "glob", "parent", "path", "pattern", "regex", "regular", "root" ], "_id": "glob-base@0.1.0", "_shasum": "8dd7d9786d2943e32c9dcc57d4184e12382e0668", "_from": ".", "_npmVersion": "2.5.1", "_nodeVersion": "0.12.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "8dd7d9786d2943e32c9dcc57d4184e12382e0668", "tarball": "https://registry.npmjs.org/glob-base/-/glob-base-0.1.0.tgz" }, "directories": {} }, "0.1.1": { "name": "glob-base", "description": "Returns an object with the base path and the actual pattern from a glob.", "version": "0.1.1", "homepage": "https://github.com/jonschlinkert/glob-base", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git://github.com/jonschlinkert/glob-base.git" }, "bugs": { "url": "https://github.com/jonschlinkert/glob-base/issues" }, "license": { "type": "MIT", "url": "https://github.com/jonschlinkert/glob-base/blob/master/LICENSE" }, "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "glob-parent": "^1.2.0", "is-glob": "^1.1.1" }, "devDependencies": { "mocha": "*" }, "keywords": [ "base", "directory", "dirname", "expression", "glob", "parent", "path", "pattern", "regex", "regular", "root" ], "gitHead": "a7c3be5073640dd567ed8b7bef2f5e19334917ab", "_id": "glob-base@0.1.1", "_shasum": "f3b2dc406467ced2567f19657450fb8e036f8c6d", "_from": ".", "_npmVersion": "2.5.1", "_nodeVersion": "0.12.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "f3b2dc406467ced2567f19657450fb8e036f8c6d", "tarball": "https://registry.npmjs.org/glob-base/-/glob-base-0.1.1.tgz" }, "directories": {} }, "0.2.0": { "name": "glob-base", "description": "Returns an object with the (non-glob) base path and the actual pattern.", "version": "0.2.0", "homepage": "https://github.com/jonschlinkert/glob-base", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git://github.com/jonschlinkert/glob-base.git" }, "bugs": { "url": "https://github.com/jonschlinkert/glob-base/issues" }, "license": { "type": "MIT", "url": "https://github.com/jonschlinkert/glob-base/blob/master/LICENSE" }, "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "glob-parent": "^1.2.0" }, "devDependencies": { "mocha": "*", "should": "^5.1.0" }, "keywords": [ "base", "directory", "dirname", "expression", "glob", "parent", "path", "pattern", "regex", "regular", "root" ], "gitHead": "7d8c1b557a424983cf6bab7ad03149d2f55257a0", "_id": "glob-base@0.2.0", "_shasum": "59d2f38c3ba2860af149b6b174512a169e9f1b3d", "_from": ".", "_npmVersion": "2.5.1", "_nodeVersion": "0.12.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "59d2f38c3ba2860af149b6b174512a169e9f1b3d", "tarball": "https://registry.npmjs.org/glob-base/-/glob-base-0.2.0.tgz" }, "directories": {} }, "0.3.0": { "name": "glob-base", "description": "Returns an object with the (non-glob) base path and the actual pattern.", "version": "0.3.0", "homepage": "https://github.com/jonschlinkert/glob-base", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git://github.com/jonschlinkert/glob-base.git" }, "bugs": { "url": "https://github.com/jonschlinkert/glob-base/issues" }, "license": { "type": "MIT", "url": "https://github.com/jonschlinkert/glob-base/blob/master/LICENSE" }, "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": { "glob-parent": "^2.0.0", "is-glob": "^2.0.0" }, "devDependencies": { "mocha": "*", "should": "^5.1.0" }, "keywords": [ "base", "directory", "dirname", "expression", "glob", "parent", "path", "pattern", "regex", "regular", "root" ], "gitHead": "adbc0ab07ec8a85f76ffd1b54dd41cdb9d1d0b83", "_id": "glob-base@0.3.0", "_shasum": "dbb164f6221b1c0b1ccf82aea328b497df0ea3c4", "_from": ".", "_npmVersion": "2.11.3", "_nodeVersion": "0.12.7", "_npmUser": { "name": "es128", "email": "elan.shanker+npm@gmail.com" }, "dist": { "shasum": "dbb164f6221b1c0b1ccf82aea328b497df0ea3c4", "tarball": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz" }, "maintainers": [ { "name": "doowb", "email": "brian.woodward@gmail.com" }, { "name": "es128", "email": "elan.shanker+npm@gmail.com" }, { "name": "jonschlinkert", "email": "github@sellside.com" } ], "directories": {} } }, "readme": "# glob-base [![NPM version](https://badge.fury.io/js/glob-base.svg)](http://badge.fury.io/js/glob-base) [![Build Status](https://travis-ci.org/jonschlinkert/glob-base.svg)](https://travis-ci.org/jonschlinkert/glob-base) \n\n> Returns an object with the (non-glob) base path and the actual pattern.\n\nUse [glob-parent](https://github.com/es128/glob-parent) if you just want the base path.\n\n## Install with [npm](npmjs.org)\n\n```bash\nnpm i glob-base --save\n```\n\n## Related projects\n* [glob-parent](https://github.com/es128/glob-parent): Strips glob magic from a string to provide the parent path\n* [micromatch](https://github.com/jonschlinkert/micromatch): Glob matching for javascript/node.js. A faster alternative to minimatch (10-45x faster on avg), with all the features you're used to using in your Grunt and gulp tasks.\n* [parse-glob](https://github.com/jonschlinkert/parse-glob): Parse a glob pattern into an object of tokens.\n* [is-glob](https://github.com/jonschlinkert/is-glob): Returns `true` if the given string looks like a glob pattern.\n* [braces](https://github.com/jonschlinkert/braces): Fastest brace expansion for node.js, with the most complete support for the Bash 4.3 braces specification.\n* [fill-range](https://github.com/jonschlinkert/fill-range): Fill in a range of numbers or letters, optionally passing an increment or multiplier to use.\n* [expand-range](https://github.com/jonschlinkert/expand-range): Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks. Used by micromatch.\n\n## Usage\n\n```js\nvar globBase = require('glob-base');\n\nglobBase('a/b/.git/');\n//=> { base: 'a/b/.git/', isGlob: false, glob: '' })\n\nglobBase('a/b/**/e');\n//=> { base: 'a/b', isGlob: true, glob: '**/e' }\n\nglobBase('a/b/*.{foo,bar}');\n//=> { base: 'a/b', isGlob: true, glob: '*.{foo,bar}' }\n\nglobBase('a/b/.git/**');\n//=> { base: 'a/b/.git', isGlob: true, glob: '**' }\n\nglobBase('a/b/c/*.md');\n//=> { base: 'a/b/c', isGlob: true, glob: '*.md' }\n\nglobBase('a/b/c/.*.md');\n//=> { base: 'a/b/c', isGlob: true, glob: '.*.md' }\n\nglobBase('a/b/{c,d}');\n//=> { base: 'a/b', isGlob: true, glob: '{c,d}' }\n\nglobBase('!*.min.js');\n//=> { base: '.', isGlob: true, glob: '!*.min.js' }\n\nglobBase('!foo');\n//=> { base: '.', isGlob: true, glob: '!foo' }\n\nglobBase('!foo/(a|b).min.js');\n//=> { base: '.', isGlob: true, glob: '!foo/(a|b).min.js' }\n\nglobBase('');\n//=> { base: '.', isGlob: false, glob: '' }\n\nglobBase('**/*.md');\n//=> { base: '.', isGlob: true, glob: '**/*.md' }\n\nglobBase('**/*.min.js');\n//=> { base: '.', isGlob: true, glob: '**/*.min.js' }\n\nglobBase('**/.*');\n//=> { base: '.', isGlob: true, glob: '**/.*' }\n\nglobBase('**/d');\n//=> { base: '.', isGlob: true, glob: '**/d' }\n\nglobBase('*.*');\n//=> { base: '.', isGlob: true, glob: '*.*' }\n\nglobBase('*.min.js');\n//=> { base: '.', isGlob: true, glob: '*.min.js' }\n\nglobBase('*/*');\n//=> { base: '.', isGlob: true, glob: '*/*' }\n\nglobBase('*b');\n//=> { base: '.', isGlob: true, glob: '*b' }\n\nglobBase('.');\n//=> { base: '.', isGlob: false, glob: '.' }\n\nglobBase('.*');\n//=> { base: '.', isGlob: true, glob: '.*' }\n\nglobBase('./*');\n//=> { base: '.', isGlob: true, glob: '*' }\n\nglobBase('/a');\n//=> { base: '/', isGlob: false, glob: 'a' }\n\nglobBase('@(a|b)/e.f.g/');\n//=> { base: '.', isGlob: true, glob: '@(a|b)/e.f.g/' }\n\nglobBase('[a-c]b*');\n//=> { base: '.', isGlob: true, glob: '[a-c]b*' }\n\nglobBase('a');\n//=> { base: '.', isGlob: false, glob: 'a' }\n\nglobBase('a.min.js');\n//=> { base: '.', isGlob: false, glob: 'a.min.js' }\n\nglobBase('a/');\n//=> { base: 'a/', isGlob: false, glob: '' }\n\nglobBase('a/**/j/**/z/*.md');\n//=> { base: 'a', isGlob: true, glob: '**/j/**/z/*.md' }\n\nglobBase('a/*/c/*.md');\n//=> { base: 'a', isGlob: true, glob: '*/c/*.md' }\n\nglobBase('a/?/c.md');\n//=> { base: 'a', isGlob: true, glob: '?/c.md' }\n\nglobBase('a/??/c.js');\n//=> { base: 'a', isGlob: true, glob: '??/c.js' }\n\nglobBase('a?b');\n//=> { base: '.', isGlob: true, glob: 'a?b' }\n\nglobBase('bb');\n//=> { base: '.', isGlob: false, glob: 'bb' }\n\nglobBase('c.md');\n//=> { base: '.', isGlob: false, glob: 'c.md' }\n```\n\n## Running tests\nInstall dev dependencies.\n\n```bash\nnpm i -d && npm test\n```\n\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/glob-base/issues)\n\n\n## Author\n\n**Jon Schlinkert**\n \n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2015 Jon Schlinkert \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 08, 2015._\n", "maintainers": [ { "email": "elan.shanker+npm@gmail.com", "name": "es128" }, { "email": "brian.woodward@gmail.com", "name": "doowb" }, { "email": "github@sellside.com", "name": "jonschlinkert" } ], "time": { "modified": "2018-02-17T05:46:08.119Z", "created": "2015-03-04T20:18:43.946Z", "0.1.0": "2015-03-04T20:18:43.946Z", "0.1.1": "2015-03-07T03:31:58.763Z", "0.2.0": "2015-03-08T14:30:40.640Z", "0.3.0": "2015-09-22T13:58:17.830Z" }, "homepage": "https://github.com/jonschlinkert/glob-base", "keywords": [ "base", "directory", "dirname", "expression", "glob", "parent", "path", "pattern", "regex", "regular", "root" ], "repository": { "type": "git", "url": "git://github.com/jonschlinkert/glob-base.git" }, "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "bugs": { "url": "https://github.com/jonschlinkert/glob-base/issues" }, "license": { "type": "MIT", "url": "https://github.com/jonschlinkert/glob-base/blob/master/LICENSE" }, "readmeFilename": "README.md", "users": { "jonschlinkert": true, "soenkekluth": true }, "_attachments": {} }