126 lines
6.8 KiB
JSON
126 lines
6.8 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "parse-glob@^3.0.4",
|
|
"scope": null,
|
|
"escapedName": "parse-glob",
|
|
"name": "parse-glob",
|
|
"rawSpec": "^3.0.4",
|
|
"spec": ">=3.0.4 <4.0.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/micromatch"
|
|
]
|
|
],
|
|
"_from": "parse-glob@>=3.0.4 <4.0.0",
|
|
"_id": "parse-glob@3.0.4",
|
|
"_inCache": true,
|
|
"_location": "/parse-glob",
|
|
"_nodeVersion": "0.12.4",
|
|
"_npmUser": {
|
|
"name": "jonschlinkert",
|
|
"email": "github@sellside.com"
|
|
},
|
|
"_npmVersion": "2.10.1",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "parse-glob@^3.0.4",
|
|
"scope": null,
|
|
"escapedName": "parse-glob",
|
|
"name": "parse-glob",
|
|
"rawSpec": "^3.0.4",
|
|
"spec": ">=3.0.4 <4.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/micromatch"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz",
|
|
"_shasum": "b2c376cfb11f35513badd173ef0bb6e3a388391c",
|
|
"_shrinkwrap": null,
|
|
"_spec": "parse-glob@^3.0.4",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/micromatch",
|
|
"author": {
|
|
"name": "Jon Schlinkert",
|
|
"url": "https://github.com/jonschlinkert"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/jonschlinkert/parse-glob/issues"
|
|
},
|
|
"dependencies": {
|
|
"glob-base": "^0.3.0",
|
|
"is-dotfile": "^1.0.0",
|
|
"is-extglob": "^1.0.0",
|
|
"is-glob": "^2.0.0"
|
|
},
|
|
"description": "Parse a glob pattern into an object of tokens.",
|
|
"devDependencies": {
|
|
"browserify": "^9.0.3",
|
|
"lodash": "^3.3.1",
|
|
"mocha": "*"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "b2c376cfb11f35513badd173ef0bb6e3a388391c",
|
|
"tarball": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz"
|
|
},
|
|
"engines": {
|
|
"node": ">=0.10.0"
|
|
},
|
|
"files": [
|
|
"index.js"
|
|
],
|
|
"gitHead": "9bfccb63acdeb3b1ed62035b3adef0e5081d8fc6",
|
|
"homepage": "https://github.com/jonschlinkert/parse-glob",
|
|
"keywords": [
|
|
"glob",
|
|
"match",
|
|
"bash",
|
|
"expand",
|
|
"expansion",
|
|
"expression",
|
|
"file",
|
|
"files",
|
|
"filter",
|
|
"find",
|
|
"glob",
|
|
"globbing",
|
|
"globs",
|
|
"globstar",
|
|
"match",
|
|
"matcher",
|
|
"matches",
|
|
"matching",
|
|
"path",
|
|
"pattern",
|
|
"patterns",
|
|
"regex",
|
|
"regexp",
|
|
"regular",
|
|
"shell",
|
|
"wildcard"
|
|
],
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "jonschlinkert",
|
|
"email": "github@sellside.com"
|
|
}
|
|
],
|
|
"name": "parse-glob",
|
|
"optionalDependencies": {},
|
|
"readme": "# parse-glob [![NPM version](https://badge.fury.io/js/parse-glob.svg)](http://badge.fury.io/js/parse-glob) [![Build Status](https://travis-ci.org/jonschlinkert/parse-glob.svg)](https://travis-ci.org/jonschlinkert/parse-glob)\n\n> Parse a glob pattern into an object of tokens.\n\n**Changes from v1.0.0 to v3.0.4**\n\n* all path-related properties are now on the `path` object\n* all boolean properties are now on the `is` object\n* adds `base` property\n\nSee the [properties](#properties) section for details.\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i parse-glob --save\n```\n\n* parses 1,000+ glob patterns in 29ms (2.3 GHz Intel Core i7)\n* Extensive [unit tests](./test.js) (more than 1,000 lines), covering wildcards, globstars, character classes, brace patterns, extglobs, dotfiles and other complex patterns.\n\nSee the tests for [hundreds of examples](./test.js).\n\n## Usage\n\n```js\nvar parseGlob = require('parse-glob');\n```\n\n**Example**\n\n```js\nparseGlob('a/b/c/**/*.{yml,json}');\n```\n\n**Returns:**\n\n```js\n{ orig: 'a/b/c/**/*.{yml,json}',\n is:\n { glob: true,\n negated: false,\n extglob: false,\n braces: true,\n brackets: false,\n globstar: true,\n dotfile: false,\n dotdir: false },\n glob: '**/*.{yml,json}',\n base: 'a/b/c',\n path:\n { dirname: 'a/b/c/**/',\n basename: '*.{yml,json}',\n filename: '*',\n extname: '.{yml,json}',\n ext: '{yml,json}' } }\n```\n\n## Properties\n\nThe object returned by parseGlob has the following properties:\n\n* `orig`: a copy of the original, unmodified glob pattern\n* `is`: an object with boolean information about the glob:\n - `glob`: true if the pattern actually a glob pattern\n - `negated`: true if it's a negation pattern (`!**/foo.js`)\n - `extglob`: true if it has extglobs (`@(foo|bar)`)\n - `braces`: true if it has braces (`{1..2}` or `.{txt,md}`)\n - `brackets`: true if it has POSIX brackets (`[[:alpha:]]`)\n - `globstar`: true if the pattern has a globstar (double star, `**`)\n - `dotfile`: true if the pattern should match dotfiles\n - `dotdir`: true if the pattern should match dot-directories (like `.git`)\n* `glob`: the glob pattern part of the string, if any\n* `base`: the non-glob part of the string, if any\n* `path`: file path segments\n - `dirname`: directory\n - `basename`: file name with extension\n - `filename`: file name without extension\n - `extname`: file extension with dot\n - `ext`: file extension without dot\n\n## Related\n* [glob-base](https://www.npmjs.com/package/glob-base): Returns an object with the (non-glob) base path and the actual pattern. | [homepage](https://github.com/jonschlinkert/glob-base)\n* [glob-parent](https://www.npmjs.com/package/glob-parent): Strips glob magic from a string to provide the parent path | [homepage](https://github.com/es128/glob-parent)\n* [glob-path-regex](https://www.npmjs.com/package/glob-path-regex): Regular expression for matching the parts of glob pattern. | [homepage](https://github.com/regexps/glob-path-regex)\n* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern. | [homepage](https://github.com/jonschlinkert/is-glob)\n* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just… [more](https://www.npmjs.com/package/micromatch) | [homepage](https://github.com/jonschlinkert/micromatch)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/parse-glob/issues/new).\n\n## Tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\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\n\nCopyright © 2014-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 September 22, 2015._",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/jonschlinkert/parse-glob.git"
|
|
},
|
|
"scripts": {
|
|
"prepublish": "browserify -o browser.js -e index.js",
|
|
"test": "mocha"
|
|
},
|
|
"version": "3.0.4"
|
|
}
|