{"id":19928078,"url":"https://github.com/razorrun/react-react-native-component-node-module-templates","last_synced_at":"2026-04-10T07:37:52.467Z","repository":{"id":57343083,"uuid":"326504306","full_name":"razorRun/react-react-native-component-node-module-templates","owner":"razorRun","description":"NPM package to easily create modules and components using your templates(several pre-loaded) for any js project. Also, give you the option to edit the template according to your project quickly.","archived":false,"fork":false,"pushed_at":"2021-01-08T03:50:40.000Z","size":416,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-27T10:49:33.520Z","etag":null,"topics":["angular","cli-script","express","graphql","react","react-boilerplate","react-components","react-native","react-template","reactjs","templates"],"latest_commit_sha":null,"homepage":"https://roshan.digital/npm-script-to-save-time-react-project/","language":"TypeScript","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/razorRun.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":"2021-01-03T21:30:03.000Z","updated_at":"2021-11-08T04:08:13.000Z","dependencies_parsed_at":"2022-09-17T06:00:35.831Z","dependency_job_id":null,"html_url":"https://github.com/razorRun/react-react-native-component-node-module-templates","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/razorRun/react-react-native-component-node-module-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorRun%2Freact-react-native-component-node-module-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorRun%2Freact-react-native-component-node-module-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorRun%2Freact-react-native-component-node-module-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorRun%2Freact-react-native-component-node-module-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/razorRun","download_url":"https://codeload.github.com/razorRun/react-react-native-component-node-module-templates/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorRun%2Freact-react-native-component-node-module-templates/sbom","scorecard":{"id":763855,"data":{"date":"2025-08-11","repo":{"name":"github.com/razorRun/react-react-native-component-node-module-templates","commit":"66ce49cd680133e1d39551ca0c4102e1ff222a31"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/npm-publish.yml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/razorRun/react-react-native-component-node-module-templates/npm-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/razorRun/react-react-native-component-node-module-templates/npm-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/razorRun/react-react-native-component-node-module-templates/npm-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/razorRun/react-react-native-component-node-module-templates/npm-publish.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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 'main'"],"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":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T00:11:26.292Z","repository_id":57343083,"created_at":"2025-08-23T00:11:26.292Z","updated_at":"2025-08-23T00:11:26.292Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278366609,"owners_count":25975091,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"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":["angular","cli-script","express","graphql","react","react-boilerplate","react-components","react-native","react-template","reactjs","templates"],"created_at":"2024-11-12T22:36:12.772Z","updated_at":"2025-10-04T19:41:40.953Z","avatar_url":"https://github.com/razorRun.png","language":"TypeScript","readme":"# React Component Templates, React Native Component Templates, Express Templates, Node Module Templates and Starters \n\nNPM package to easily create modules and components using your templates(several pre-loaded) for any js project. Also, give you the option to edit the template according to your project quickly.\n\nImagine working on a project with more than 100s of react components. How good if we can create components using an npm task inside the project. This way, it will save time and helps to maintain consistency throughout the project. And of course, you can approach this in various ways. Such as\n\n - Create and template file type on the code editor.\n - Use a plugin that gives snippets for the code editor.\n\nThe way I see it is when you work with multiple different teams on different projects, it is always useful to have isolated project standards that can be easily adjustable for the whole team.\n\nExample: \n\nlet's say on a react project whenever we create a functional component we do following steps.\n\n1. create a folder with component name - Login\n2. create three files inside this folder - Login.tsx,  Login.module.css, Login.test.ts\n3. create basic code structures on each of those files with relevant class names and module names. \n\nWhat this tool does is automate this whole process. You and your team can create a template you like, and this tool will create files with the name you input and replace the content in your template files whenever you create a new module. \n\n![demo](https://github.com/razorRun/react-react-native-component-node-module-templates/blob/main/demo.gif?raw=true)\n\n#### Install\n\n`npm i react-react-native-component-node-module-templates --save-dev`\n\n#### Setup on first time\n\n run `node node_modules/react-react-native-component-node-module-templates/init.js`\n\nYou will notice this will create an entry called `gen` in your package.json and copy a folder to your project root called \n`developer-templates`. Fell free to edit them as you see needed. \n\n#### To run the generator \n\n`npm run gen`\n\nSee [NPM script to automate tasks in React and other JS Projects](https://roshan.digital/npm-script-to-save-time-react-project/) post for more information.\n\nTo add a new Template \n 1. Create a folder inside `developer-templates` folder with the repo type ex:react\n 2. Create child folder with the template files type ex: component,module \n 3. Create user-input-map.json file indicating what are the values user should input and how they should get replaced.\n \n `\n[\n  {\n    \"label\":\"UserInput1\",\n    \"replacements\":[\n      {\n        \"replacingText\" : \"ModuleName\",\n        \"replacingCaseTypes\": 1 ,\n        \"replacingLocations\": [1,2,3]\n      }\n    ]\n  },\n  {\n    \"label\":\"UserInput2\",\n    \"replacements\":[\n      {\n        \"replacingText\" : \"ModuleName\",\n        \"replacingCaseTypes\": 1 ,\n        \"replacingLocations\": [1,3]\n      }\n    ]\n  }\n]\n `\n \nSupported `replacingCaseTypes`\n1. camelCase \n2. snake_case \n3. kebab-case\n4. PascalCase\n5. UPPER_CASE_SNAKE_CASE\n\nSupported `replacingLocations`\n\n1. file names  \n2. folder names\n3. inside files \n\nAlso, feel free contribute to save time. :innocent: Happy Coding :heart: :muscle:\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazorrun%2Freact-react-native-component-node-module-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frazorrun%2Freact-react-native-component-node-module-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazorrun%2Freact-react-native-component-node-module-templates/lists"}