{"id":29200132,"url":"https://github.com/micromatch/resolve-glob","last_synced_at":"2025-07-09T14:35:28.538Z","repository":{"id":57354715,"uuid":"43539523","full_name":"micromatch/resolve-glob","owner":"micromatch","description":"Ensures that absolute file paths are always returned from a glob pattern or array of glob patterns.","archived":false,"fork":false,"pushed_at":"2017-07-20T21:28:29.000Z","size":18,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-30T13:50:13.160Z","etag":null,"topics":["absolute","filepath","glob","javascript","node","nodejs","path","resolve"],"latest_commit_sha":null,"homepage":null,"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/micromatch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-02T06:54:27.000Z","updated_at":"2023-11-07T04:08:41.000Z","dependencies_parsed_at":"2022-09-12T03:40:30.747Z","dependency_job_id":null,"html_url":"https://github.com/micromatch/resolve-glob","commit_stats":null,"previous_names":["jonschlinkert/resolve-glob"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/micromatch/resolve-glob","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fresolve-glob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fresolve-glob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fresolve-glob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fresolve-glob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micromatch","download_url":"https://codeload.github.com/micromatch/resolve-glob/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fresolve-glob/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262802321,"owners_count":23366722,"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":["absolute","filepath","glob","javascript","node","nodejs","path","resolve"],"created_at":"2025-07-02T10:06:26.776Z","updated_at":"2025-07-02T10:06:30.978Z","avatar_url":"https://github.com/micromatch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# resolve-glob [![NPM version](https://img.shields.io/npm/v/resolve-glob.svg?style=flat)](https://www.npmjs.com/package/resolve-glob) [![NPM monthly downloads](https://img.shields.io/npm/dm/resolve-glob.svg?style=flat)](https://npmjs.org/package/resolve-glob) [![NPM total downloads](https://img.shields.io/npm/dt/resolve-glob.svg?style=flat)](https://npmjs.org/package/resolve-glob) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/resolve-glob.svg?style=flat\u0026label=Travis)](https://travis-ci.org/jonschlinkert/resolve-glob)\n\n\u003e Ensures that absolute file paths are always returned from a glob pattern or array of glob patterns.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save resolve-glob\n```\n\n## Usage\n\n```js\nvar glob = require('resolve-glob');\n```\n\nSee [matched](https://github.com/jonschlinkert/matched) for the full range of features and options.\n\n**async**\n\n```js\nglob(['*.js'], function(err, files) {\n  console.log(files[0])\n  //=\u003e '/Users/jonschlinkert/dev/resolve-glob/index.js'\n});\n```\n\n**sync**\n\n```js\nvar files = glob.sync(['*.js']);\nconsole.log(files[0])\n//=\u003e '/Users/jonschlinkert/dev/resolve-glob/index.js'\n```\n\n### cwd expansion\n\nThe following characters are expanded to directories with [resolve-dir](https://github.com/jonschlinkert/resolve-dir) when used as leading characters in `options.cwd`:\n\n* `~`: expanded to the user home directory\n* `@`: expanded to global npm modules directory\n\nSee [resolve-dir](https://github.com/jonschlinkert/resolve-dir) for more details.\n\n## About\n\n### Related projects\n\n* [has-glob](https://www.npmjs.com/package/has-glob): Returns `true` if an array has a glob pattern. | [homepage](https://github.com/jonschlinkert/has-glob \"Returns `true` if an array has a glob pattern.\")\n* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob \"Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet\")\n* [is-valid-glob](https://www.npmjs.com/package/is-valid-glob): Return true if a value is a valid glob pattern or patterns. | [homepage](https://github.com/jonschlinkert/is-valid-glob \"Return true if a value is a valid glob pattern or patterns.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme \u0026\u0026 verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install \u0026\u0026 npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 20, 2017._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicromatch%2Fresolve-glob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicromatch%2Fresolve-glob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicromatch%2Fresolve-glob/lists"}