{"id":16787475,"url":"https://github.com/ben-rogerson/get-files-in","last_synced_at":"2026-05-18T22:08:58.741Z","repository":{"id":57250171,"uuid":"193584394","full_name":"ben-rogerson/get-files-in","owner":"ben-rogerson","description":"📑 A simple script that synchronously returns a list of file paths of specified types from a directory","archived":false,"fork":false,"pushed_at":"2019-08-28T01:56:54.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T11:05:25.341Z","etag":null,"topics":["file-path","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ben-rogerson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-24T21:40:12.000Z","updated_at":"2019-10-23T00:10:36.000Z","dependencies_parsed_at":"2022-08-24T16:11:31.964Z","dependency_job_id":null,"html_url":"https://github.com/ben-rogerson/get-files-in","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben-rogerson%2Fget-files-in","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben-rogerson%2Fget-files-in/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben-rogerson%2Fget-files-in/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben-rogerson%2Fget-files-in/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ben-rogerson","download_url":"https://codeload.github.com/ben-rogerson/get-files-in/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243950939,"owners_count":20373665,"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":["file-path","nodejs"],"created_at":"2024-10-13T08:15:02.467Z","updated_at":"2026-05-18T22:08:58.699Z","avatar_url":"https://github.com/ben-rogerson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get files in\n\nA Node.js script that synchronously returns a list of file paths of specified types from a directory or directories.\n\n## Install\n\n```bash\nnpm install -D get-files-in\n```\n\n## Usage\n\n```js\ngetFilesIn(folderPath, matchFiletypes = [], checkSubDirectories = false)\n```\n\n```js\nrequire()\ngetFilesIn(path.resolve(__dirname, source.styles), [\n    \"scss\",\n    \"sass\",\n    \"less\",\n]\n// [\n//  '/Users/hotstuff/project/src/styles/main.scss',\n//  '/Users/hotstuff/project/src/styles/hello.sass',\n// ]\n```\n\n```js\nrequire()\ngetFilesIn(path.resolve(__dirname, source.styles), [\n    \"scss\",\n    \"sass\",\n    \"less\",\n], true\n// [\n//  '/Users/hotstuff/project/src/styles/main.scss',\n//  '/Users/hotstuff/project/src/styles/hello.sass',\n//  '/Users/hotstuff/project/src/styles/subfolders-allowed/index.sass',\n// ]\n```\n\n## History\n\nThis package was created for the [Agency Webpack Mix Config](https://github.com/ben-rogerson/agency-webpack-mix-config).\nThe package was updated to use [Globby](https://github.com/sindresorhus/globby) because it uses an improved syntax to select files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fben-rogerson%2Fget-files-in","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fben-rogerson%2Fget-files-in","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fben-rogerson%2Fget-files-in/lists"}