{"id":18260051,"url":"https://github.com/roppa/read-directory","last_synced_at":"2025-04-08T23:44:39.829Z","repository":{"id":146092811,"uuid":"77068319","full_name":"roppa/read-directory","owner":"roppa","description":"Read a directory or recursively read a directory to get a list of files","archived":false,"fork":false,"pushed_at":"2017-06-29T23:36:40.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T18:36:28.072Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roppa.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-21T16:32:14.000Z","updated_at":"2017-06-28T16:51:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"38575bfe-d778-4996-b703-9f181db2fb9d","html_url":"https://github.com/roppa/read-directory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fread-directory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fread-directory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fread-directory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fread-directory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roppa","download_url":"https://codeload.github.com/roppa/read-directory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247947825,"owners_count":21023058,"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-11-05T10:41:48.804Z","updated_at":"2025-04-08T23:44:39.809Z","avatar_url":"https://github.com/roppa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/roppa/read-directory.svg?branch=master)](https://travis-ci.org/roppa/read-directory)[![Coverage Status](https://coveralls.io/repos/github/roppa/read-directory/badge.svg?branch=master)](https://coveralls.io/github/roppa/read-directory?branch=master)\n\n\n# read-directory\n\nRead a folder recursively and get a list of all files.\n\n## readDirectory('path/to/folder'[,ignoreObject])\n\nWhere ignoreObject is something like:\n\n```javascript\n{\n  pdf: null,\n  doc: null,\n  docx: null\n}\n```\n\nReturns a promise which resolves an array of file paths.\n\n## readDeepDirectory('path/to/folder'[,ignoreObject,readCallback])\n\nReturns a promise which resolves an array of file paths.\n\nIf a callback is supplied, the stat object is returned along with a 'file' attribute with the full file path.\n\n## Test\n\n```javascript\nnpm run test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froppa%2Fread-directory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froppa%2Fread-directory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froppa%2Fread-directory/lists"}