{"name":"glob-promise","version":"2.0.0","keywords":["glob","promise"],"author":{"url":"https://www.ahmadnassri.com/","name":"Ahmad Nassri","email":"ahmad@ahmadnassri.com"},"license":"ISC","_id":"glob-promise@2.0.0","maintainers":[{"name":"ahmadnassri","email":"ahmad@ahmadnassri.com"}],"homepage":"https://github.com/ahmadnassri/glob-promise","bugs":{"url":"https://github.com/ahmadnassri/glob-promise/issues"},"dist":{"shasum":"7a0f42660f42d0964f62ffec37fd41ecb64f5eb5","tarball":"http://registry-npm.ywwl.com/glob-promise/download/glob-promise-2.0.0.tgz","integrity":"sha512-Ops3UtGEVfCCtaBkPsl39qlFG8FG+MStDuaGzDV32YKw3cYAaY+/dHmzWjd9LoghLOpsQ3907ffKL/5gUIo41Q==","signatures":[{"sig":"MEQCIFYTRIraa3vnt7MtlDIkz0y49RPCTuvPhZLen7l7/OEvAiBaszlEmfPx7+YC7eK9AbYXuvdDJaYndWBRT6DWT13oXQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2788,"noattachment":false,"key":"/glob-promise/-/glob-promise-2.0.0.tgz"},"main":"lib/index.js","_from":".","files":["lib","src"],"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"echint":{"ignore":["lib/**"]},"_shasum":"7a0f42660f42d0964f62ffec37fd41ecb64f5eb5","engines":{"node":">=4"},"gitHead":"4c8a31d24bd6cc14d193a50341daaa5a69af81e4","scripts":{"test":"BABEL_ENV=test tap test/*.js --node-arg=--require --node-arg=babel-register | tap-mocha-reporter spec","compile":"babel -q src","pretest":"snazzy && echint","coverage":"BABEL_ENV=test tap test/*.js --coverage --nyc-arg=--require --nyc-arg=babel-register","codeclimate":"nyc report --reporter=text-lcov | codeclimate-test-reporter","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"_npmUser":{"name":"ahmadnassri","email":"ahmad@ahmadnassri.com"},"standard":{"ignore":["lib/**"]},"repository":{"url":"git+https://github.com/ahmadnassri/glob-promise.git","type":"git"},"_npmVersion":"2.15.11","description":"Promise version of glob","directories":{},"_nodeVersion":"4.6.2","devDependencies":{"tap":"^8.0.1","echint":"^1.5.3","snazzy":"^5.0.0","babel-cli":"^6.18.0","babel-register":"^6.18.0","babel-preset-env":"0.0.8","semantic-release":"^6.3.2","tap-mocha-reporter":"^3.0.0","codeclimate-test-reporter":"^0.4.0","cz-conventional-changelog":"^1.2.0","babel-plugin-add-module-exports":"^0.2.1"},"peerDependencies":{"glob":"*"},"_npmOperationalInternal":{"tmp":"tmp/glob-promise-2.0.0.tgz_1479581717542_0.6833746272604913","host":"packages-12-west.internal.npmjs.com"},"readme":"# Promise version of glob\n\nMatch files using the patterns the shell uses, like stars and stuff.\n\n[![license][license-img]][license-url]\n[![release][release-img]][release-url]\n[![semantic][semantic-img]][semantic-url]\n\n> ***Note**: This is just a [`Promise`][] wrapped version of [`glob`][]*\n\n> \\[!IMPORTANT\\]  \n> [Glob][`glob`] has native Promise support as of `v9.0.0`, please use it directly.\n> I will not issue a deprecation notice on this package, because I can't deal with the volume of angry tickets that will follow.\n\n## Install\n\n``` bash\nnpm install glob-promise glob\n```\n\n###### NOTE\n\n[`glob`][] is set as a `peerDependency` in [`package.json`][]\n\n- `npm` \\>= 7 will automatically install `peerDependencies`\n- `npm` \\<= 6 will **not** automatically install `peerDependencies`.\n\nYou will need to manually add `glob` as a dependency to your project for `glob-promise` to work.\n\n## API\n\n### `glob(pattern [, options])`\n\nAlias for `glob.promise`\n\n### `glob.promise(pattern [, options])`\n\n*pattern*: `String` (glob pattern)\n*options*: `Object` or `String`\nReturn: `Object` ([Promise][`Promise`])\n\nWhen it finishes, it will be [*fulfilled*][] with an `Array` of filenames as its first argument.\n\nWhen it fails to read the files, it will be [*rejected*][] with an error as its first argument.\n\n``` js\nglob('**/*')\n  .then(function(contents) {\n    contents; //=> ['lorem', 'ipsum', 'dolor']\n  });\n\nglob('{foo,bar.baz}.txt', { nobrace: true })\n  .then(function(contents) {\n    contents; //=> []\n  });\n```\n\n### `glob.glob(pattern [, options], cb)`\n\n> see [`glob`][1]\n\n### `glob.sync(pattern [, options])`\n\n> see [`glob.sync()`][]\n\n### `glob.hasMagic(pattern, [options])`\n\n> see [`glob.hasMagic()`][]\n\n### `Class: glob.Glob`\n\n> see [`Glob`][2]\n\n#### options\n\nThe option object will be directly passed to [glob][].\n\n  [`Promise`]: http://promisesaplus.com/\n  [`glob`]: https://github.com/isaacs/node-glob\n  [`package.json`]: package.json\n  [*fulfilled*]: http://promisesaplus.com/#point-26\n  [*rejected*]: http://promisesaplus.com/#point-30\n  [1]: https://github.com/isaacs/node-glob#globpattern-options-cb\n  [`glob.sync()`]: https://github.com/isaacs/node-glob#globsyncpattern-options\n  [`glob.hasMagic()`]: https://github.com/isaacs/node-glob#globhasmagicpattern-options\n  [2]: https://github.com/isaacs/node-glob#class-globglob\n  [glob]: https://github.com/isaacs/node-glob#options\n\n----\n> Author: [Ahmad Nassri](https://www.ahmadnassri.com/) &bull;\n> Twitter: [@AhmadNassri](https://twitter.com/AhmadNassri)\n\n[license-url]: LICENSE\n[license-img]: https://badgen.net/github/license/ahmadnassri/node-glob-promise\n\n[release-url]: https://github.com/ahmadnassri/node-glob-promise/releases\n[release-img]: https://badgen.net/github/release/ahmadnassri/node-glob-promise\n\n[semantic-url]: https://github.com/ahmadnassri/node-glob-promise/actions?query=workflow%3Arelease\n[semantic-img]: https://badgen.net/badge/📦/semantically%20released/blue\n","publish_time":1479581719503,"_cnpm_publish_time":1479581719503,"dist-tags":{"latest":"6.0.7"}}