{"name":"glob-promise","version":"6.0.2","keywords":["glob","promise"],"author":{"url":"https://www.ahmadnassri.com/","name":"Ahmad Nassri","email":"ahmad@ahmadnassri.com"},"license":"MIT","_id":"glob-promise@6.0.2","maintainers":[{"name":"ahmadnassri","email":"ahmad@ahmadnassri.com"}],"homepage":"https://github.com/ahmadnassri/node-glob-promise","bugs":{"url":"https://github.com/ahmadnassri/node-glob-promise/issues"},"dist":{"shasum":"7c7f2a223e3aaa8f7bd7ff5f24d0ab2352724b31","tarball":"http://registry-npm.ywwl.com/glob-promise/download/glob-promise-6.0.2.tgz","fileCount":5,"integrity":"sha512-Ni2aDyD1ekD6x8/+K4hDriRDbzzfuK4yKpqSymJ4P7IxbtARiOOuU+k40kbHM0sLIlbf1Qh0qdMkAHMZYE6XJQ==","signatures":[{"sig":"MEYCIQD0u2OZOy4xJjgS7nGDrYO1NP3RHVX4w1uMddNvArwangIhAMWzl9kKP6nyO98knqdsN/slBY/rJ62wMximKSMVLvoB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5700,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyq0nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqedhAAl2ZP2WZRlc1be4eDDk1g4alrStmx546ws4zTkh6oMimWM9SJ\r\njEprMPoPkBg3jAkbdZtA4SChCct6V0T+NtDcDOw553xaWKdrQB2o/7HmrZUs\r\nTqPek0E3zA4IOUb7cQjJT/Kg3WbJNq4nGQeJE7PesVQXJ309H6pIdZDb2Md+\r\npdxNnsdVrOOjb4Nq8LvTxs898xofmP51pK1dhZUVh5XB+cvPeFMlOpBQ8BpO\r\nC8pc56E8LKpGJe6HIBuds0iGrNbonkxsd6ggNdrMn+ecs7nxr2CFu0BCaWof\r\nkqIJCMF1OdJsAY5a/tXJ1X+eEsYpVsPvoDotlydw+nLbVIdnMkQAgO6NRdL2\r\n20TRUVK29oOpMYR40v+3+kcatAKQG52vce5AGjx48WV0t8VBRT3notSzoSzW\r\n9x3gu0HVZqez83Yr15gKRuWflhPpin7HKnNGqmuye8soUju48VNsnY+Dvakw\r\nXhJvBp4l3eI/9Rg2U+AgzcPEXXIfs/LVArwQHvcqAvn0j0SpC+lWFeqxrDgV\r\nTTPjMcz2ht/Km9PNEK1h59F6+5UdgoocFE0VYrA3LhKzpjl+Wm0jTzTLlzzw\r\nK31xcINfj36YPYO1dKE2PDUDL4IPaqyqmeYP3MtVwLaQPB6MQwrTGUuAX63i\r\nhzVxoqD11WANBb1acv5CKMoVCEjHGmtKx3U=\r\n=23TG\r\n-----END PGP SIGNATURE-----\r\n","size":2537,"noattachment":false,"key":"/glob-promise/-/glob-promise-6.0.2.tgz"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=16"},"funding":{"url":"https://github.com/sponsors/ahmadnassri","type":"individual"},"gitHead":"52cb921a44c80e1541aab405b725b0c4aa0a2723","scripts":{"test":"tap test --no-coverage","test:ci":"tap test --100","test:watch":"tap test --watch","test:report":"opener coverage/lcov-report/index.html"},"_npmUser":{"name":"ahmadnassri","email":"ahmad@ahmadnassri.com"},"repository":{"url":"git+https://github.com/ahmadnassri/node-glob-promise.git","type":"git"},"_npmVersion":"9.1.2","description":"Promise version of glob","directories":{},"_nodeVersion":"18.12.1","dependencies":{"@types/glob":"^8.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^16.3.0"},"peerDependencies":{"glob":"^8.0.3"},"_npmOperationalInternal":{"tmp":"tmp/glob-promise_6.0.2_1674226983265_0.2785974812712564","host":"s3://npm-registry-packages"},"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":1674226983462,"_cnpm_publish_time":1674226983462,"dist-tags":{"latest":"6.0.7"}}