{"version":"6.0.7","name":"glob-promise","description":"Promise version of glob","author":{"name":"Ahmad Nassri","email":"ahmad@ahmadnassri.com","url":"https://www.ahmadnassri.com/"},"homepage":"https://github.com/ahmadnassri/node-glob-promise","repository":{"type":"git","url":"git+https://github.com/ahmadnassri/node-glob-promise.git"},"bugs":{"url":"https://github.com/ahmadnassri/node-glob-promise/issues"},"funding":{"type":"individual","url":"https://github.com/sponsors/ahmadnassri"},"license":"MIT","keywords":["glob","promise"],"engines":{"node":">=16"},"main":"lib/index.js","types":"lib/index.d.ts","scripts":{"test":"tap test --no-coverage","test:watch":"tap test --watch","test:ci":"tap test --100","test:report":"opener coverage/lcov-report/index.html"},"devDependencies":{"@types/glob":"^8.0.0","tap":"^16.3.0"},"peerDependencies":{"glob":"^8.0.3"},"_id":"glob-promise@6.0.7","gitHead":"1b10bd711bd5f339523d0c6984dbc354e4ec6e50","_nodeVersion":"22.3.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-DEAe6br1w8ZF+y6KM2pzgdfhpreladtNvyNNVgSkxxkFWzXTJFXxQrJQQbAnc7kL0EUd7w5cR8u4K0P4+/q+Gw==","shasum":"6d894212c63a42e1b86d1cbb04f4582b658308e4","tarball":"http://registry-npm.ywwl.com/glob-promise/download/glob-promise-6.0.7.tgz","fileCount":5,"unpackedSize":5909,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiBWJBxQA9msG0yins6TNQ0D149hOxEkP4pVYzjMCxOAIgV+T90kNFWqeYu+o1+pAxE4gZAuUwJg/Rw/944lVWyy4="}],"size":2672,"noattachment":false,"key":"/glob-promise/-/glob-promise-6.0.7.tgz"},"_npmUser":{"name":"ahmadnassri","email":"ahmad@ahmadnassri.com"},"directories":{},"maintainers":[{"name":"ahmadnassri","email":"ahmad@ahmadnassri.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-promise_6.0.7_1718299415433_0.6649447519147942"},"_hasShrinkwrap":false,"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":1718299415582,"_cnpm_publish_time":1718299415582,"dist-tags":{"latest":"6.0.7"}}