{"id":25696634,"url":"https://github.com/tizee/react-gensvg","last_synced_at":"2026-06-12T18:32:55.894Z","repository":{"id":48309146,"uuid":"279224271","full_name":"tizee/react-gensvg","owner":"tizee","description":"A tsx/jsx file generator for svg files","archived":false,"fork":false,"pushed_at":"2021-08-02T10:26:00.000Z","size":53,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-02T18:39:25.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/tizee.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":"2020-07-13T05:58:03.000Z","updated_at":"2020-07-21T16:31:58.000Z","dependencies_parsed_at":"2022-08-28T13:20:16.101Z","dependency_job_id":null,"html_url":"https://github.com/tizee/react-gensvg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tizee/react-gensvg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Freact-gensvg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Freact-gensvg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Freact-gensvg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Freact-gensvg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tizee","download_url":"https://codeload.github.com/tizee/react-gensvg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Freact-gensvg/sbom","scorecard":{"id":888017,"data":{"date":"2025-08-11","repo":{"name":"github.com/tizee/react-gensvg","commit":"5434d8e8b764f175c49f2b9d5b6021332ec797bd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/20 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T10:44:29.562Z","repository_id":48309146,"created_at":"2025-08-24T10:44:29.562Z","updated_at":"2025-08-24T10:44:29.562Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34258367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-02-25T01:54:54.111Z","updated_at":"2026-06-12T18:32:55.875Z","avatar_url":"https://github.com/tizee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003ereact-gensvg\u003ch1\u003e\n\n  \u003cp\u003eA tsx/jsx file generator for svg files\u003c/p\u003e\n\u003c/div\u003e\n\n[![version][version-badge]][package]\n[![Build Status][build-badge]][build]\n[![Code Coverage][coverage-badge]][coverage]\n[![MIT License][license-badge]][license]\n[![PRs Welcome][pr-welcome]](http://makeapullrequest.com)\n\n## Why\n\nThis project is inspired by [react-feather](https://github.com/feathericons/react-feather) and [typescript-react-svg-icon-generator](https://github.com/jackple/typescript-react-svg-icon-generator). It's tedious to migrate SVG files to tsx/jsx files manually.\nThis is a tool help developer to generate SVG icon component with tsx/jsx extenion easily.\n\n## Usage\n\n```js\nconst convert = require('react-gensvg');\n// convert(src,dist,tsx,prettierConfig)\n// src: string\n// dist: string\n// tsx: boolean, default true\n// prettierConfig: prettier.Options\n\n// generate tsx files by default\nconvert('./static/icons', './src/svg');\n/* ./static/icons/A.svg -\u003e ./src/svg/A.tsx */\n\n// generate jsx files\nconvert('./static/icons', './src/svg', true);\n/* ./static/icons/A.svg -\u003e ./src/svg/A.jsx*/\n\n// generate tsx files explicitly\nconvert('./static/icons', './src/svg', false);\n/* ./static/icons/A.svg -\u003e ./src/svg/A.tsx */\n```\n\n### CLI\n\n```\nUsage: svgcli [options]\n\nOptions:\n  --version   Show version number                            [boolean]\n  --src, -s   source directory for svg files       [string] [required]\n  --dist, -d  destination directory for generated files\n                                                   [string] [required]\n  --jsx       flag for jsx file extension. default: false    [boolean]\n  -h, --help  Show help                                      [boolean]\n```\n\n```bash\nnpx svgcli -s ./static/icons -d ./src/svg --jsx\n# ./static/icons/A.svg -\u003e ./src/svg/A.jsx\n# note: create dir ./src/svg if not exist\n```\n\n### Template\n\nCurrently it uses a simple template string to generate\ncode files.\n\n```jsx\nimport React, { forwardRef } from 'react';\n\nconst /* FileName */ = forwardRef(\n  ({ ...rest }, ref) =\u003e {\n    return (\n      /* React SVG tag*/\n    );\n  }\n);\n\nexport default /* FileName */;\n```\n\n## LISENCE\n\n[MIT](./LISENCE)\n\n[package]: https://www.npmjs.com/package/react-gensvg\n[version-badge]: https://img.shields.io/npm/v/react-gensvg.svg?style=flat-square\n[license]: https://github.com/tizee/react-gensvg/blob/master/LICENSE\n[license-badge]: https://img.shields.io/npm/l/react-gensvg.svg?style=flat-square\n[build]: https://travis-ci.com/tizee/react-gensvg\n[build-badge]: https://travis-ci.org/tizee/react-gensvg.svg?branch=master\n[coverage]: https://codecov.io/github/tizee/react-gensvg\n[coverage-badge]: https://img.shields.io/codecov/c/github/tizee/react-gensvg.svg?style=flat-square\n[pr-welcome]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftizee%2Freact-gensvg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftizee%2Freact-gensvg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftizee%2Freact-gensvg/lists"}