{"id":16142863,"url":"https://github.com/mukundkumra/react-component-generator","last_synced_at":"2026-01-24T17:32:43.579Z","repository":{"id":257815151,"uuid":"869404300","full_name":"mukundkumra/react-component-generator","owner":"mukundkumra","description":"A simple CLI tool to quickly generate React component folders with JSX and CSS files. The package scaffolds a folder with a React component template that includes imports for the CSS file and a functional component ready for editing.","archived":false,"fork":false,"pushed_at":"2024-10-08T10:52:32.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T02:25:53.604Z","etag":null,"topics":["cli","component","css","generator","jsx","react","scaffold","tool"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@mukundkumra/react-component-generator","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/mukundkumra.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,"zenodo":null}},"created_at":"2024-10-08T08:36:54.000Z","updated_at":"2024-10-08T10:52:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae5cd732-de70-4179-8698-1b82a981c79f","html_url":"https://github.com/mukundkumra/react-component-generator","commit_stats":null,"previous_names":["mukundkumra/react-component-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mukundkumra/react-component-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukundkumra%2Freact-component-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukundkumra%2Freact-component-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukundkumra%2Freact-component-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukundkumra%2Freact-component-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mukundkumra","download_url":"https://codeload.github.com/mukundkumra/react-component-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukundkumra%2Freact-component-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28732613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","component","css","generator","jsx","react","scaffold","tool"],"created_at":"2024-10-10T00:07:29.800Z","updated_at":"2026-01-24T17:32:43.574Z","avatar_url":"https://github.com/mukundkumra.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Component Generator\n\nA simple CLI tool for generating React components with a predefined folder structure and boilerplate code.\n\n## Features\n\n- Easily generate React components with a single command.\n- Automatically creates the necessary folder structure.\n- Generates .jsx and .css files with boilerplate code.\n\n## Installation\n\nYou can either clone the git or install with npm:\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/mukundkumra/react-component-generator\n   cd react-component-generator\n   npm link\n   ```\n\n2. Install the package:\n\n   ```bash\n   npm i -g @mukundkumra/react-component-generator\n   ```\n\n## Usage\n\nTo generate a React component, use the command:\n\n```bash\ngen \u003cComponentName\u003e\n```\n\n### Examples\n\n1. **Generate a simple component**:\n\n   ```bash\n   gen Home\n   ```\n\n   This will create the following structure:\n\n   ```\n   Home/\n     ├── Home.jsx\n     └── Home.css\n   ```\n\n2. **Generate a nested component**:\n\n   ```bash\n   gen Test/Home\n   ```\n\n   This will create the following structure:\n\n   ```\n   Test/\n     └── Home/\n         ├── Home.jsx\n         └── Home.css\n   ```\n\n## Generated File Structure\n\n### Home.jsx\n\n```javascript\nimport './Home.css';\nimport React from 'react';\n\nfunction Home() {\n    return (\n        \u003cdiv className=\"Home\"\u003e\n            {/* Add your JSX here */}\n        \u003c/div\u003e\n    );\n}\n\nexport default Home;\n```\n\n### Home.css\n\n```css\n.Home {\n    /* Add your styles here */\n}\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a pull request or open an issue for any bugs or feature requests.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmukundkumra%2Freact-component-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmukundkumra%2Freact-component-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmukundkumra%2Freact-component-generator/lists"}