{"id":16446034,"url":"https://github.com/qwtel/create-element-x","last_synced_at":"2026-01-21T16:36:18.984Z","repository":{"id":38106382,"uuid":"113358467","full_name":"qwtel/create-element-x","owner":"qwtel","description":"Extends document.createElement to conform to the target API of JSX.","archived":false,"fork":false,"pushed_at":"2023-01-06T01:32:30.000Z","size":1390,"stargazers_count":1,"open_issues_count":15,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T08:56:01.176Z","etag":null,"topics":["create-element","dom","element","jsx"],"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/qwtel.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":"2017-12-06T19:27:56.000Z","updated_at":"2021-03-26T02:43:16.000Z","dependencies_parsed_at":"2023-02-05T01:25:10.945Z","dependency_job_id":null,"html_url":"https://github.com/qwtel/create-element-x","commit_stats":null,"previous_names":["qwtel/create-element-extended"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/qwtel/create-element-x","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwtel%2Fcreate-element-x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwtel%2Fcreate-element-x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwtel%2Fcreate-element-x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwtel%2Fcreate-element-x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qwtel","download_url":"https://codeload.github.com/qwtel/create-element-x/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwtel%2Fcreate-element-x/sbom","scorecard":{"id":756559,"data":{"date":"2025-08-11","repo":{"name":"github.com/qwtel/create-element-x","commit":"a8580c275cff736fbafbe12e66b4d0c79eebb652"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"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":"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":"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":"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":"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":"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":"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":"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":"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 '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":"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":0,"reason":"45 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"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-22T21:50:52.006Z","repository_id":38106382,"created_at":"2025-08-22T21:50:52.006Z","updated_at":"2025-08-22T21:50:52.006Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28635929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T15:01:31.228Z","status":"ssl_error","status_checked_at":"2026-01-21T14:42:58.942Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["create-element","dom","element","jsx"],"created_at":"2024-10-11T09:46:14.432Z","updated_at":"2026-01-21T16:36:18.962Z","avatar_url":"https://github.com/qwtel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create Element Extended\n\n[![Build Status](https://travis-ci.org/qwtel/create-element-x.svg?branch=master)](https://travis-ci.org/qwtel/create-element-x)\n\nExtends `document.createElement` to conform to the target API of JSX transpilation.\n\n```js\nvar element = document.createElement(tagName[, attributes[, children]])\n```\n\nThis package is useful when frequently creating DOM nodes on the fly, e.g.:\n\n```js\nfunction makeSpinner(id) {\n  const div = document.createElement('div');\n  div.id = id;\n  div.classList.add('sk-folding-cube');\n\n  const cube1 = document.createElement('div');\n  cube1.classList.add('sk-cube1')\n  cube1.classList.add('sk-cube')\n\n  const cube2 = document.createElement('div');\n  cube2.classList.add('sk-cube2')\n  cube2.classList.add('sk-cube')\n\n  const cube3 = document.createElement('div');\n  cube3.classList.add('sk-cube3')\n  cube3.classList.add('sk-cube')\n\n  const srOnly = document.createElement('span')\n  srOnly.classList.add('sr-only');\n  srOnly.textContent = 'Loading...';\n\n  div.appendChild(cube1);\n  div.appendChild(cube2);\n  div.appendChild(cube3);\n  div.appendChild(srOnly);\n\n  return div;\n}\n```\n\nbecomes\n\n```js\nimport 'create-element-x';\n\nfunction makeSpinner(id) {\n  return document.createElement('div', { id, 'class': 'sk-folding-cube' }, [\n    document.createElement('div', { 'class': 'sk-cube1 sk-cube' }),\n    document.createElement('div', { 'class': 'sk-cube2 sk-cube' }),\n    document.createElement('div', { 'class': 'sk-cube3 sk-cube' }),\n    document.createElement('span', { 'class': 'sr-only' }, 'Loading...'),\n  ]);\n}\n```\n\nWhen using babel and `babel-plugin-transform-react-jsx` you can use JSX,\nwhich transpiles to the example above.\n\n```js\n/* pragma: document.createElement */\n\nimport 'create-element-x';\n\nfunction makeSpinner(id) {\n  return (\n    \u003cdiv id={id} class=\"sk-folding-cube\"\u003e\n      \u003cdiv class=\"sk-cube1 sk-cube\"\u003e\u003c/div\u003e\n      \u003cdiv class=\"sk-cube2 sk-cube\"\u003e\u003c/div\u003e\n      \u003cdiv class=\"sk-cube3 sk-cube\"\u003e\u003c/div\u003e\n      \u003cspan class=\"sr-only\"\u003eLoading...\u003c/span\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\n\nInstead of setting `pragma` via comment, you can configure babel globally via `.babelrc`:\n\n```json\n{\n  \"plugins\": [\n    [\"transform-react-jsx\", {\n      \"pragma\": \"document.createElement\"\n    }]\n  ]\n}\n```\n\n## FAQ\n### I don't like monkey-patching...\nImport the library funtion instead:\n```js\n/* pragma: createElement */\nimport { createElement } from 'create-element-x/library'\n```\n\n### How do I use this without webpack, browserify?\nMonkey-patch:\n```html\n\u003cscript src=\"https://unpkg.com/create-element-x/dist/index.min.js\"\u003e\u003c/script\u003e\n```\n\nLibrary:\n```html\n\u003cscript src=\"https://unpkg.com/create-element-x/dist/library.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  const { createElement } = window.createElementX;\n  createElement('div', { id, 'class': 'sk-folding-cube' });\n  // ...\n\u003c/script\u003e\n```\n\n### How do I use this with `jsdom` or other DOM implementations?\n```js\nimport { JSDOM } from 'jsdom';\nimport { createCreateElement } from 'create-element-x/factory';\n\nconst { window: { document } } = new JSDOM();\n\nconst createElement = createCreateElement(\n  tagName =\u003e document.createElement(tagName),\n  text =\u003e document.createTextNode(text),\n);\n```\n\n### How is this different from `jsx-dom`, `jsx-create-element`, `nativejsx`, and `jsx-foobar`?\nThis package does less. All it does is to create a DOM node.\n\n### Why not jQuery?\nCourage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwtel%2Fcreate-element-x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqwtel%2Fcreate-element-x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwtel%2Fcreate-element-x/lists"}