{"id":15491501,"url":"https://github.com/diegohaz/list-react-files","last_synced_at":"2025-06-13T18:05:03.344Z","repository":{"id":66339830,"uuid":"92369721","full_name":"diegohaz/list-react-files","owner":"diegohaz","description":"List React component files inside a directory","archived":false,"fork":false,"pushed_at":"2023-07-27T21:40:41.000Z","size":57,"stargazers_count":26,"open_issues_count":5,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T18:02:14.169Z","etag":null,"topics":["react","react-components","readdir"],"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/diegohaz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-25T05:54:03.000Z","updated_at":"2025-05-21T18:14:43.000Z","dependencies_parsed_at":"2024-06-18T18:42:12.887Z","dependency_job_id":null,"html_url":"https://github.com/diegohaz/list-react-files","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/diegohaz/list-react-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohaz%2Flist-react-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohaz%2Flist-react-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohaz%2Flist-react-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohaz%2Flist-react-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diegohaz","download_url":"https://codeload.github.com/diegohaz/list-react-files/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegohaz%2Flist-react-files/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259695276,"owners_count":22897506,"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":["react","react-components","readdir"],"created_at":"2024-10-02T07:54:04.615Z","updated_at":"2025-06-13T18:05:03.261Z","avatar_url":"https://github.com/diegohaz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# list-react-files\n\n[![Generated with nod](https://img.shields.io/badge/generator-nod-2196F3.svg?style=flat-square)](https://github.com/diegohaz/nod)\n[![NPM version](https://img.shields.io/npm/v/list-react-files.svg?style=flat-square)](https://npmjs.org/package/list-react-files)\n[![Build Status](https://img.shields.io/travis/diegohaz/list-react-files/master.svg?style=flat-square)](https://travis-ci.org/diegohaz/list-react-files) [![Coverage Status](https://img.shields.io/codecov/c/github/diegohaz/list-react-files/master.svg?style=flat-square)](https://codecov.io/gh/diegohaz/list-react-files/branch/master)\n\nList React component files inside a directory\n\n## Install\n\n    $ npm install --save list-react-files\n\n## Usage\n\nExample with [ARc](https://github.com/diegohaz/arc) codebase:\n\n```js\nimport listReactFiles from 'list-react-files'\n\nlistReactFiles(__dirname).then(files =\u003e console.log(files))\n/* \n[ \n  'src-example/components/App.js',\n  'src-example/components/atoms/Atom/index.js',\n  'src-example/components/atoms/Badge/index.js',\n  'src-example/components/atoms/Block/index.js',\n  'src-example/components/atoms/Button/index.js',\n  'src-example/components/atoms/Caption/index.js',\n  'src-example/components/atoms/Heading/index.js',\n  'src-example/components/atoms/HorizontalRule/index.js',\n  'src-example/components/atoms/Icon/index.js',\n  'src-example/components/atoms/Input/index.js',\n  'src-example/components/atoms/Label/index.js',\n  'src-example/components/atoms/Link/index.js',\n  'src-example/components/atoms/List/index.js',\n  'src-example/components/atoms/LogoImage/index.js',\n  'src-example/components/atoms/Paragraph/index.js',\n  'src-example/components/atoms/PreformattedText/index.js',\n  'src-example/components/atoms/Spinner/index.js',\n  'src-example/components/atoms/TableCell/index.js',\n  'src-example/components/atoms/TableRow/index.js',\n  'src-example/components/atoms/Tooltip/index.js',\n  'src-example/components/molecules/Blockquote/index.js',\n  'src-example/components/molecules/Feature/index.js',\n  'src-example/components/molecules/Field/index.js',\n  'src-example/components/molecules/IconButton/index.js',\n  'src-example/components/molecules/IconLink/index.js',\n  'src-example/components/molecules/Modal/index.js',\n  'src-example/components/molecules/Molecule/index.js',\n  'src-example/components/molecules/PrimaryNavigation/index.js',\n  'src-example/components/molecules/Slider/index.js',\n  'src-example/components/molecules/Table/index.js',\n  'src-example/components/organisms/FeatureList/index.js',\n  'src-example/components/organisms/Footer/index.js',\n  'src-example/components/organisms/Header/index.js',\n  'src-example/components/organisms/Hero/index.js',\n  'src-example/components/organisms/Organism/index.js',\n  'src-example/components/pages/GenericPage/index.js',\n  'src-example/components/pages/HomePage/index.js',\n  'src-example/components/pages/NotFoundPage/index.js',\n  'src-example/components/pages/SamplePage/index.js',\n  'src-example/components/templates/GenericTemplate/index.js',\n  'src-example/components/templates/PageTemplate/index.js',\n  'src/components/App.js',\n  'src/components/pages/HomePage/index.js'\n ] \n */\n```\n\n## API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n### listReactFiles\n\nList react component files inside a directory\n\n**Parameters**\n\n-   `cwd` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)\u0026lt;[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)\u0026lt;[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\u003e\u003e** \n\n## License\n\nMIT © [Diego Haz](https://github.com/diegohaz)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiegohaz%2Flist-react-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiegohaz%2Flist-react-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiegohaz%2Flist-react-files/lists"}