{"id":13451963,"url":"https://github.com/tomerigal/babel-plugin-transform-redom-jsx","last_synced_at":"2026-01-28T02:53:09.825Z","repository":{"id":13368905,"uuid":"74211062","full_name":"tomerigal/babel-plugin-transform-redom-jsx","owner":"tomerigal","description":"Babel plugin for RE:DOM jsx","archived":false,"fork":false,"pushed_at":"2024-12-02T17:57:43.000Z","size":324,"stargazers_count":20,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T23:04:15.572Z","etag":null,"topics":[],"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/tomerigal.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":"2016-11-19T13:46:20.000Z","updated_at":"2024-08-12T12:27:33.000Z","dependencies_parsed_at":"2024-01-16T03:46:11.055Z","dependency_job_id":"ab02f0db-83a1-4a39-a8f3-9c9393d5e077","html_url":"https://github.com/tomerigal/babel-plugin-transform-redom-jsx","commit_stats":{"total_commits":131,"total_committers":5,"mean_commits":26.2,"dds":0.5038167938931297,"last_synced_commit":"957b1e5357fa8514d8cbd7d566c67997114a36ef"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/tomerigal/babel-plugin-transform-redom-jsx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomerigal%2Fbabel-plugin-transform-redom-jsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomerigal%2Fbabel-plugin-transform-redom-jsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomerigal%2Fbabel-plugin-transform-redom-jsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomerigal%2Fbabel-plugin-transform-redom-jsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomerigal","download_url":"https://codeload.github.com/tomerigal/babel-plugin-transform-redom-jsx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomerigal%2Fbabel-plugin-transform-redom-jsx/sbom","scorecard":{"id":892491,"data":{"date":"2025-08-18","repo":{"name":"github.com/tomerigal/babel-plugin-transform-redom-jsx","commit":"957b1e5357fa8514d8cbd7d566c67997114a36ef"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":3.2,"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/npm.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/tomerigal/babel-plugin-transform-redom-jsx/npm.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/tomerigal/babel-plugin-transform-redom-jsx/npm.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/tomerigal/babel-plugin-transform-redom-jsx/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/tomerigal/babel-plugin-transform-redom-jsx/tests.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/npm.yml:16","Warn: npmCommand not pinned by hash: .github/workflows/tests.yml:20","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T12:24:15.108Z","repository_id":13368905,"created_at":"2025-08-24T12:24:15.108Z","updated_at":"2025-08-24T12:24:15.108Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28835262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T02:10:51.810Z","status":"ssl_error","status_checked_at":"2026-01-28T02:10:50.806Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-07-31T07:01:08.473Z","updated_at":"2026-01-28T02:53:09.759Z","avatar_url":"https://github.com/tomerigal.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# babel-plugin-transform-redom-jsx\n\n[![Build Status](https://github.com/tomerigal/babel-plugin-transform-redom-jsx/workflows/tests/badge.svg)](https://github.com/tomerigal/babel-plugin-transform-redom-jsx/actions)\n[![npm version](https://badge.fury.io/js/babel-plugin-transform-redom-jsx.svg)](https://badge.fury.io/js/babel-plugin-transform-redom-jsx)\n\n## Installation\n\n```bash\nnpm install babel-plugin-transform-redom-jsx --save-dev\n```\n\n## Usage\n\n### Babel config:\n\n```json\n{\n  \"plugins\": [\n    \"babel-plugin-transform-redom-jsx\",\n    [\n      \"transform-react-jsx\",\n      {\n        \"pragma\": \"el\"\n      }\n    ]\n  ]\n}\n```\n\n### Component\n\nThe plugin transpiles the following JSX:\n\n```jsx\nimport { el, text, mount } from \"redom\";\nclass A {\n  constructor(attr, text) {\n    \u003cdiv this=\"el\"\u003e\n      \u003ch3\u003e{attr.title}\u003c/h3\u003e\n      \u003cspan this=\"span\"\u003eHello\u003c/span\u003e {text}\n    \u003c/div\u003e;\n  }\n  update() {\n    this.span.textContent = \"Hi\";\n  }\n}\n\nclass B {\n  constructor() {\n    \u003cdiv this=\"el\"\u003e\n      \u003cA this=\"a\" title=\"Hello World example\"\u003e\n        \u003cspan this=\"span\"\u003eWorld\u003c/span\u003e\n      \u003c/A\u003e\n    \u003c/div\u003e;\n  }\n  update() {\n    this.span.textContent = \"You\";\n    this.a.update();\n  }\n}\n\nconst b = \u003cB /\u003e;\n\nmount(document.body, b);\n\nb.update();\n```\n\nTo the following JavaScript:\n\n```js\nimport { el, text, mount } from \"redom\";\nclass A {\n  constructor(attr, text) {\n    this[\"el\"] = el(\n      \"div\",\n      null,\n      el(\"h3\", null, attr.title),\n      (this[\"span\"] = el(\"span\", null, \"Hello\")),\n      \" \",\n      text\n    );\n  }\n  update() {\n    this.span.textContent = \"Hi\";\n  }\n}\n\nclass B {\n  constructor() {\n    this[\"el\"] = el(\n      \"div\",\n      null,\n      (this[\"a\"] = new A(\n        { title: \"Hello World example\" },\n        (this[\"span\"] = el(\"span\", null, \"World\"))\n      ))\n    );\n  }\n  update() {\n    this.span.textContent = \"You\";\n    this.a.update();\n  }\n}\n\nconst b = new B({});\n\nmount(document.body, b);\n\nb.update();\n```\n\n### Assign to this\n\nThe plugin transpiles the following JSX:\n\n```jsx\nimport { el, mount } from \"redom\";\n\n// define Login component\nclass Login {\n  constructor() {\n    \u003cform\n      this=\"el\"\n      id=\"login\"\n      onsubmit={(e) =\u003e {\n        e.preventDefault();\n        const email = this.email.value;\n        const pass = this.pass.value;\n        console.log(email, pass);\n      }}\n    \u003e\n      \u003cinput type=\"email\" class=\"email\" this=\"email\" /\u003e\n      \u003cinput type=\"password\" class=\"pass\" this=\"pass\" /\u003e\n      \u003cbutton type=\"submit\"\u003eSign in\u003c/button\u003e\n    \u003c/form\u003e;\n  }\n}\n\n// mount to DOM\nmount(document.body, \u003cLogin /\u003e);\n```\n\nTo the following JavaScript:\n\n```js\nimport { el, mount } from \"redom\";\n\n// define Login component\nclass Login {\n  constructor() {\n    this[\"el\"] = el(\n      \"form\",\n      {\n        id: \"login\",\n        onsubmit: (e) =\u003e {\n          e.preventDefault();\n          const email = this.email.value;\n          const pass = this.pass.value;\n          console.log(email, pass);\n        },\n      },\n      (this[\"email\"] = el(\"input\", { type: \"email\", class: \"email\" })),\n      (this[\"pass\"] = el(\"input\", { type: \"password\", class: \"pass\" })),\n      el(\"button\", { type: \"submit\" }, \"Sign in\")\n    );\n  }\n}\n\n// mount to DOM\nmount(document.body, new Login());\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomerigal%2Fbabel-plugin-transform-redom-jsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomerigal%2Fbabel-plugin-transform-redom-jsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomerigal%2Fbabel-plugin-transform-redom-jsx/lists"}