{"id":23366728,"url":"https://github.com/d8corp/innet-jsx","last_synced_at":"2026-03-06T01:34:13.192Z","repository":{"id":57274228,"uuid":"379857038","full_name":"d8corp/innet-jsx","owner":"d8corp","description":"JSX parser for innet","archived":false,"fork":false,"pushed_at":"2026-02-21T18:39:27.000Z","size":1135,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-22T00:23:03.811Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/d8corp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2021-06-24T08:30:44.000Z","updated_at":"2026-02-21T18:39:18.000Z","dependencies_parsed_at":"2025-07-20T04:36:16.605Z","dependency_job_id":"d0cb720e-b650-4d0f-8c0b-3a571825dcee","html_url":"https://github.com/d8corp/innet-jsx","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/d8corp/innet-jsx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Finnet-jsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Finnet-jsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Finnet-jsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Finnet-jsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d8corp","download_url":"https://codeload.github.com/d8corp/innet-jsx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Finnet-jsx/sbom","scorecard":{"id":315945,"data":{"date":"2025-08-11","repo":{"name":"github.com/d8corp/innet-jsx","commit":"db280a2e5d20c202a7e9deca043c6c482513c6af"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/24 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":"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":"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-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"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-18T00:11:08.357Z","repository_id":57274228,"created_at":"2025-08-18T00:11:08.358Z","updated_at":"2025-08-18T00:11:08.358Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30157846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"ssl_error","status_checked_at":"2026-03-05T22:39:24.771Z","response_time":93,"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-12-21T14:17:27.152Z","updated_at":"2026-03-06T01:34:13.175Z","avatar_url":"https://github.com/d8corp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://www.npmjs.com/package/innet\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/d8corp/innet/main/logo.svg\" align=\"left\" width=\"90\" height=\"90\" alt=\"InnetJs logo by Mikhail Lysikov\"\u003e\u003c/a\u003e\n\n# \u0026nbsp; innet-jsx\n\n\u0026nbsp;\n\n[![NPM](https://img.shields.io/npm/v/innet-jsx.svg)](https://www.npmjs.com/package/innet-jsx)\n[![downloads](https://img.shields.io/npm/dm/innet-jsx.svg)](https://www.npmtrends.com/innet-jsx)\n[![license](https://img.shields.io/npm/l/innet-jsx)](https://github.com/d8corp/innet-jsx/blob/main/LICENSE)\n[![license](https://img.shields.io/badge/Changelog-⋮-brightgreen)](https://changelogs.xyz/innet-jsx)\n\nThis utils help to convert `jsx` into `js` with [innet](https://www.npmjs.com/package/innet) rules.\n\n[![stars](https://img.shields.io/github/stars/d8corp/innet-jsx?style=social)](https://github.com/d8corp/innet-jsx/stargazers)\n[![watchers](https://img.shields.io/github/watchers/d8corp/innet-jsx?style=social)](https://github.com/d8corp/innet-jsx/watchers)\n\n## Install\n\nnpm\n```bash\nnpm i -g innet-jsx\n```\n\nYou can use `npx innet-jsx` without installation.\n\n## Usage\nYou can use `Node.js` exports or `CLI` for conversion of `jsx` into `js`.\n\n### CLI\nRun `innet-jsx` with `-v` option to see `innet-jsx` version you have.\n```shell\ninnet-jsx -v\n```\n\nRun `innet-jsx` with `-h` option to see help information.\n```shell\ninnet-jsx -h\n```\n\n#### Arguments\nRun the CLI with input file path you want to convert.\n```shell\ninnet-jsx test.jsx\n```\n*You will get `js` file with the same name, around it*\n\nIf you want to set another output file path, add the path after the input one.\n```shell\ninnet-jsx test.jsx custom.js\n```\n\n#### Options\nUse `-m` option to add map file.\n```shell\ninnet-jsx test.jsx -m\n```\n*You will get test.js.map*\n\nUse `-w` option to watch the input file\n```shell\ninnet-jsx test.jsx -w\n```\n\n### Node.js\nYou can use it in a Node.js project\n```shell\nnpm i -D innet-jsx\n# or\nyarn add -D innet-jsx\n```\n\n#### Transform\nUse `transform` to convert `jsx` string code to `js`.\n```typescript jsx\nimport transform from 'innet-jsx'\n\nconsole.log(transform('\u003c\u003e\u003c/\u003e'))\n```\n*You will get an object with 2 fields: code (contains result of transformation) and map (contains map data)*\n\nYou can pass to `transform` an object with the next fields: `code`, `map` (optional).\n\n```typescript jsx\nimport transform from 'innet-jsx'\n\nconsole.log(transform({\n  code: '\u003c\u003e\u003c/\u003e',\n  map: '...',\n}))\n```\n\nIf you want to get **Abstract Syntax Tree (AST)**, use `parse` function.\n```typescript jsx\nimport { parse } from 'innet-jsx'\n\nconsole.log(parse('\u003c\u003e\u003c/\u003e'))\n```\n\n## Rules\n\nA fragment converts to an array\n```typescript jsx\n\u003c\u003e\u003c/\u003e // []\n\u003c\u003e1\u003c/\u003e // ['1']\n\u003c\u003e{1}\u003c/\u003e // [1]\n\u003c\u003e{1}{2}\u003c/\u003e // [1,2]\n\u003c\u003e{1} {2}\u003c/\u003e // [1,' ',2]\n\u003c\u003e {1} {2} \u003c/\u003e // [1,' ',2]\n\u003c\u003e\n  {1}\n  {2}\n\u003c/\u003e // [1,' ',2]\n```\n\nAn element converts to an object with `type` field, that equals a component or a string.\n```typescript jsx\n\u003cdiv /\u003e // {type:'div'}\n\u003cdiv\u003e\u003c/div\u003e // {type:'div'}\n```\n\nThe `props` field of a JSX element contains attributes of the element.\n```typescript jsx\n\u003cdiv id='test' /\u003e // {type:'div',props:{id:'test'}}\n\n\u003cdiv id=\"test1\" class={\"test2\"} /\u003e\n// {type:'div',props:{id:\"test1\",class:\"test2\"}}\n\nconst test = 1;\n\u003cdiv children={\u003c\u003etest: {test}\u003c/\u003e} /\u003e\n// {type:'div',props:{children:['test: ',test]}}\n```\n\nThe `children` prop contains body of the element\n```typescript jsx\n\u003cdiv\u003e1\u003c/div\u003e // {type:'div',props:{children:'1'}}\n\u003cdiv\u003e{2}\u003c/div\u003e // {type:'div',props:{children:2}}\n\u003cdiv\u003e1{2}\u003c/div\u003e // {type:'div',props:{children:['1',2]}}\n\u003cdiv\u003e\u003cspan /\u003e\u003c/div\u003e\n// {type:'div',props:{children:{type:'span'}}}\n```\n\n## Issues\nIf you find a bug or have a suggestion, please file an issue on [GitHub](https://github.com/d8corp/innet-jsx/issues).\n\n[![issues](https://img.shields.io/github/issues-raw/d8corp/innet-jsx)](https://github.com/d8corp/innet-jsx/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd8corp%2Finnet-jsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd8corp%2Finnet-jsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd8corp%2Finnet-jsx/lists"}