{"id":17305269,"url":"https://github.com/splittydev/sfc","last_synced_at":"2025-07-07T00:04:07.983Z","repository":{"id":92725237,"uuid":"236708170","full_name":"SplittyDev/sfc","owner":"SplittyDev","description":"Rust CLI for scaffolding React SFCs.","archived":false,"fork":false,"pushed_at":"2020-01-31T10:32:33.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T14:18:12.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/SplittyDev.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,"zenodo":null}},"created_at":"2020-01-28T10:21:43.000Z","updated_at":"2020-01-31T10:32:36.000Z","dependencies_parsed_at":"2023-03-28T01:02:42.275Z","dependency_job_id":null,"html_url":"https://github.com/SplittyDev/sfc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SplittyDev/sfc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SplittyDev%2Fsfc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SplittyDev%2Fsfc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SplittyDev%2Fsfc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SplittyDev%2Fsfc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SplittyDev","download_url":"https://codeload.github.com/SplittyDev/sfc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SplittyDev%2Fsfc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263991428,"owners_count":23540663,"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-10-15T11:55:12.676Z","updated_at":"2025-07-07T00:04:07.974Z","avatar_url":"https://github.com/SplittyDev.png","language":"Rust","readme":"# stateless-function-component\n\u003e Easy scaffolding of stateless function components.\n\nSupported:\n\n- [x] Plain SFC\n- [x] `--styled`: Styled Components\n- [x] `--routed`: React Router\n- [x] `--feather`: Feather Icons\n- [x] `--children`: Nested Components\n\nAll options can be mixed and combined.\n\nUsage:\n\n```bash\n# show all options\nsfc --help\n\n# scaffold styled sfc with routing\nsfc --styled --routed\n```\n\nExample output for `sfc --styled --routed`:\n```jsx\nimport React from 'react';\nimport styled from 'styled-components';\nimport {\n    Link,\n    Switch,\n    useRouteMatch,\n} from 'react-router-dom';\n\nconst MyComponent = ({className}) =\u003e {\n    const {path} = useRouteMatch();\n\n    return (\n        \u003cdiv className={className}\u003e\n        \u003c/div\u003e\n    );\n};\n\nexport default styled(MyComponent)``;\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplittydev%2Fsfc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplittydev%2Fsfc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplittydev%2Fsfc/lists"}