{"id":15361570,"url":"https://github.com/popomore/resolve-files","last_synced_at":"2025-04-15T08:41:41.955Z","repository":{"id":57354683,"uuid":"84194186","full_name":"popomore/resolve-files","owner":"popomore","description":"Get all files from the given entry that resolved by `require`","archived":false,"fork":false,"pushed_at":"2017-05-03T12:04:03.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T18:12:10.387Z","etag":null,"topics":[],"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/popomore.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","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":"2017-03-07T12:00:46.000Z","updated_at":"2018-10-15T14:26:30.000Z","dependencies_parsed_at":"2022-09-12T03:40:29.277Z","dependency_job_id":null,"html_url":"https://github.com/popomore/resolve-files","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fresolve-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fresolve-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fresolve-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fresolve-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/popomore","download_url":"https://codeload.github.com/popomore/resolve-files/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248680073,"owners_count":21144604,"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":[],"created_at":"2024-10-01T12:55:39.957Z","updated_at":"2025-04-15T08:41:41.932Z","avatar_url":"https://github.com/popomore.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# resolve-files\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/resolve-files.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/resolve-files\n[travis-image]: https://img.shields.io/travis/popomore/resolve-files.svg?style=flat-square\n[travis-url]: https://travis-ci.org/popomore/resolve-files\n[codecov-image]: https://codecov.io/gh/popomore/resolve-files/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/popomore/resolve-files\n[david-image]: https://img.shields.io/david/popomore/resolve-files.svg?style=flat-square\n[david-url]: https://david-dm.org/popomore/resolve-files\n[snyk-image]: https://snyk.io/test/npm/resolve-files/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/resolve-files\n[download-image]: https://img.shields.io/npm/dm/resolve-files.svg?style=flat-square\n[download-url]: https://npmjs.org/package/resolve-files\n\nGet all files from the given entry that resolved by `require`\n\n## Usage\n\nThere are files in npm packages\n\n```\n|- package.json\n|- index.js\n`- lib\n  `- index.js\n```\n\nAnd `index.js` requires `lib/index.js`, you can use `resolve-files` to get all files.\n\n```js\nconst resolve = require('resolve-files');\nconst result = resolve({ cwd: process.cwd() });\n// =\u003e\n// [\n//   '$BASEDIR/index.js',\n//   '$BASEDIR/lib/index.js',\n// ]\n```\n\nIt will resolve the entry\n\nNormally, the result will include npm modules, but you can give an options `ignoreModules: true` to ignore modules (only return relative files).\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpopomore%2Fresolve-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpopomore%2Fresolve-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpopomore%2Fresolve-files/lists"}