{"id":15645869,"url":"https://github.com/ahmadnassri/node-glob-promise","last_synced_at":"2025-04-08T08:13:18.303Z","repository":{"id":33995529,"uuid":"37749193","full_name":"ahmadnassri/node-glob-promise","owner":"ahmadnassri","description":"Promise version of glob","archived":false,"fork":false,"pushed_at":"2025-01-07T20:53:23.000Z","size":578,"stargazers_count":53,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T05:34:06.550Z","etag":null,"topics":["lib","node"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/glob-promise","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahmadnassri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ahmadnassri"]}},"created_at":"2015-06-19T22:37:41.000Z","updated_at":"2025-01-07T20:53:26.000Z","dependencies_parsed_at":"2023-02-13T22:45:23.281Z","dependency_job_id":"f1c95a3c-02ce-4786-a658-68fce8e236e2","html_url":"https://github.com/ahmadnassri/node-glob-promise","commit_stats":{"total_commits":278,"total_committers":13,"mean_commits":"21.384615384615383","dds":0.3633093525179856,"last_synced_commit":"ddaced82226b5267ee0b82b2327bd4e0a166b582"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadnassri%2Fnode-glob-promise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadnassri%2Fnode-glob-promise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadnassri%2Fnode-glob-promise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadnassri%2Fnode-glob-promise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmadnassri","download_url":"https://codeload.github.com/ahmadnassri/node-glob-promise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801169,"owners_count":20998339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lib","node"],"created_at":"2024-10-03T12:10:23.879Z","updated_at":"2025-04-08T08:13:18.276Z","avatar_url":"https://github.com/ahmadnassri.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ahmadnassri"],"categories":[],"sub_categories":[],"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\u003e ***Note**: This is just a [`Promise`][] wrapped version of [`glob`][]*\n\n\u003e \\[!IMPORTANT\\]  \n\u003e [Glob][`glob`] has native Promise support as of `v9.0.0`, please use it directly.\n\u003e 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` \\\u003e= 7 will automatically install `peerDependencies`\n- `npm` \\\u003c= 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; //=\u003e ['lorem', 'ipsum', 'dolor']\n  });\n\nglob('{foo,bar.baz}.txt', { nobrace: true })\n  .then(function(contents) {\n    contents; //=\u003e []\n  });\n```\n\n### `glob.glob(pattern [, options], cb)`\n\n\u003e see [`glob`][1]\n\n### `glob.sync(pattern [, options])`\n\n\u003e see [`glob.sync()`][]\n\n### `glob.hasMagic(pattern, [options])`\n\n\u003e see [`glob.hasMagic()`][]\n\n### `Class: glob.Glob`\n\n\u003e 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\u003e Author: [Ahmad Nassri](https://www.ahmadnassri.com/) \u0026bull;\n\u003e 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmadnassri%2Fnode-glob-promise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmadnassri%2Fnode-glob-promise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmadnassri%2Fnode-glob-promise/lists"}