{"id":13671234,"url":"https://github.com/fs-utils/fs-readdir-recursive","last_synced_at":"2025-04-27T14:33:10.344Z","repository":{"id":57242315,"uuid":"13294752","full_name":"fs-utils/fs-readdir-recursive","owner":"fs-utils","description":"Recursively read a directory","archived":false,"fork":false,"pushed_at":"2017-11-10T15:48:01.000Z","size":13,"stargazers_count":63,"open_issues_count":3,"forks_count":8,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-14T20:04:00.138Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/fs-utils.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":"2013-10-03T09:26:36.000Z","updated_at":"2025-01-12T03:12:51.000Z","dependencies_parsed_at":"2022-09-11T01:10:16.455Z","dependency_job_id":null,"html_url":"https://github.com/fs-utils/fs-readdir-recursive","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fs-utils%2Ffs-readdir-recursive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fs-utils%2Ffs-readdir-recursive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fs-utils%2Ffs-readdir-recursive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fs-utils%2Ffs-readdir-recursive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fs-utils","download_url":"https://codeload.github.com/fs-utils/fs-readdir-recursive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251154360,"owners_count":21544485,"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-08-02T09:01:03.662Z","updated_at":"2025-04-27T14:33:10.016Z","avatar_url":"https://github.com/fs-utils.png","language":"JavaScript","readme":"# fs.readdirSyncRecursive\n\n[![NPM version][npm-image]][npm-url]\n[![Build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Dependency Status][david-image]][david-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n[![Gittip][gittip-image]][gittip-url]\n\nRead a directory recursively.\n\n## Install\n\n```bash\nnpm install fs-readdir-recursive\n```\n\n## Example\n\n```js\nvar read = require('fs-readdir-recursive')\nread(__dirname) === [\n  'test/test.js',\n  'index.js',\n  'LICENSE',\n  'package.json',\n  'README.md'\n]\n```\n\n## API\n\n### read(root [, filter])\n\n`root` is the directory you wish to scan. `filter` is an optional filter for the files with three params(name, index, dir). By default, filter is:\n\n```js\nfunction (name) {\n  return name[0] !== '.'\n}\n```\n\nWhich basically just ignores `.` files.\n\n[npm-image]: https://img.shields.io/npm/v/fs-readdir-recursive.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/fs-readdir-recursive\n[github-tag]: http://img.shields.io/github/tag/fs-utils/fs-readdir-recursive.svg?style=flat-square\n[github-url]: https://github.com/fs-utils/fs-readdir-recursive/tags\n[travis-image]: https://img.shields.io/travis/fs-utils/fs-readdir-recursive.svg?style=flat-square\n[travis-url]: https://travis-ci.org/fs-utils/fs-readdir-recursive\n[coveralls-image]: https://img.shields.io/coveralls/fs-utils/fs-readdir-recursive.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/fs-utils/fs-readdir-recursive\n[david-image]: http://img.shields.io/david/fs-utils/fs-readdir-recursive.svg?style=flat-square\n[david-url]: https://david-dm.org/fs-utils/fs-readdir-recursive\n[license-image]: http://img.shields.io/npm/l/fs-readdir-recursive.svg?style=flat-square\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/fs-readdir-recursive.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/fs-readdir-recursive\n[gittip-image]: https://img.shields.io/gratipay/jonathanong.svg?style=flat-square\n[gittip-url]: https://gratipay.com/jonathanong/\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffs-utils%2Ffs-readdir-recursive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffs-utils%2Ffs-readdir-recursive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffs-utils%2Ffs-readdir-recursive/lists"}