{"name":"glob-promise","version":"4.1.0","keywords":["glob","promise"],"author":{"url":"https://www.ahmadnassri.com/","name":"Ahmad Nassri","email":"ahmad@ahmadnassri.com"},"license":"MIT","_id":"glob-promise@4.1.0","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":"cde1692fd7442ce24b50e123dfe8b5f8428f35a3","tarball":"http://registry-npm.ywwl.com/glob-promise/download/glob-promise-4.1.0.tgz","fileCount":5,"integrity":"sha512-wOdaX1+QJi3ldbjq4fXX/BbGSjhsG6eGXqMnBjQj9ubDiDLvrXbbXRj02rA0CXbMMM7J58dajiQ72va63D7pNw==","signatures":[{"sig":"MEQCIHkBLFjoLFvP9owZvmp44evCkmMp/P/8loheXaQUP46YAiBDkJWgTqWAHp/cXcUHYORL2wROf5UM5e2e4SZycKtLlg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6144,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgO+v6CRA9TVsSAnZWagAA89sP/ifV3eeVj7jRAmUgs8Gt\nhYepAJ4MJcMc3EZV/AMgH1DJGBsFuOYQvE8rCTsvrVVpPlzVloh5hSMFolVG\nt6aDjTou7TEMUyCMmpXXaiVWmcpBdbbVaASu8QuFBMuUwAF1kKr6zKSiGYA9\nZp3PAQwv+bKyki4yoC0v554/fG2x5BZW/KkHGTUILT1LwTfQBD7OUZbBAnkT\n0O7IQRsTUdM7NWXtAEl5vJMfWAyQcfpAUC+cZb3nDZkNyinYgVnd55vFSaXu\nVEah5aOOnDhe3trGc663jlGa/KtKm5UcvjjX+Lx0SwGlIUwrCeurW8sxwYe4\naroG3R84swcZHkF1I1iHYTW2cO5I178m7u8xInMRNeQc691n3rCO8YbvJQHa\nv8hli0MyAYDENhNcKUlo7YVJHnGDrBvph6u4E6Gf/fExt0Lxn5U3oz4dY4BD\n+bexGYF0tKkUqLPXGwUrZmn+Q/RLqjAz06Uyt3u+Tp06D2gTs3CEzaOnGbrj\noRFC7EdNc5il+4SrxdZCz+WqfCdGOHhRA4RL/DBOH/vuqrk2MI4mUfxB0NEb\njkFrbVw6yvV1qJZUW5ZB0j5NjlmPpr5RtOCFOuHkXEbhn5uSDODyEwOHd7RZ\nELSN4VjHCi1oPCj8M83TTZsRL6EmrLS39qSlLF4kA57+dO+RZ8rJ2nVdXQF3\nj0fA\r\n=14Mv\r\n-----END PGP SIGNATURE-----\r\n","size":2649,"noattachment":false,"key":"/glob-promise/-/glob-promise-4.1.0.tgz"},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=12"},"gitHead":"131a8b2739de4a38e63f65b497e3b0db2078412b","scripts":{"test":"tap test --no-coverage","test:ci":"tap test --100 --color --coverage-report=lcov --no-browser","test:watch":"tap test --watch"},"_npmUser":{"name":"ahmadnassri","email":"ahmad@ahmadnassri.com"},"repository":{"url":"git+https://github.com/ahmadnassri/node-glob-promise.git","type":"git"},"_npmVersion":"6.14.8","description":"Promise version of glob","directories":{},"_nodeVersion":"14.15.0","dependencies":{"@types/glob":"^7.1.3"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^14.11.0"},"peerDependencies":{"glob":"^7.1.6"},"_npmOperationalInternal":{"tmp":"tmp/glob-promise_4.1.0_1614539770206_0.7595816691274639","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":1614539770323,"_cnpm_publish_time":1614539770323,"dist-tags":{"latest":"6.0.7"}}