{"id":15497527,"url":"https://github.com/bcomnes/uhtml-isomorphic","last_synced_at":"2025-10-04T14:53:42.802Z","repository":{"id":37940318,"uuid":"403696546","full_name":"bcomnes/uhtml-isomorphic","owner":"bcomnes","description":"Isomorphic exports of uhtml","archived":false,"fork":false,"pushed_at":"2025-01-26T00:54:03.000Z","size":60,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T19:22:58.899Z","etag":null,"topics":["uhtml"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/uhtml-isomorphic","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/bcomnes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/funding.yml","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},"funding":{"github":["bcomnes"],"custom":["https://bret.io"]}},"created_at":"2021-09-06T16:50:51.000Z","updated_at":"2024-10-24T18:08:57.000Z","dependencies_parsed_at":"2023-01-28T15:31:31.619Z","dependency_job_id":"94e9d0dc-2ce8-4646-b5bd-7585676aaf46","html_url":"https://github.com/bcomnes/uhtml-isomorphic","commit_stats":{"total_commits":40,"total_committers":3,"mean_commits":"13.333333333333334","dds":"0.42500000000000004","last_synced_commit":"4bf67d0713d92563129087427b7b3504aea47118"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fuhtml-isomorphic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fuhtml-isomorphic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fuhtml-isomorphic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Fuhtml-isomorphic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcomnes","download_url":"https://codeload.github.com/bcomnes/uhtml-isomorphic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250332774,"owners_count":21413265,"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","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":["uhtml"],"created_at":"2024-10-02T08:39:23.986Z","updated_at":"2025-10-04T14:53:37.772Z","avatar_url":"https://github.com/bcomnes.png","language":"JavaScript","funding_links":["https://github.com/sponsors/bcomnes","https://bret.io"],"categories":[],"sub_categories":[],"readme":"# uhtml-isomorphic\n[![Actions Status](https://github.com/bcomnes/uhtml-isomorphic/workflows/tests/badge.svg)](https://github.com/bcomnes/uhtml-isomorphic/actions)\n\nIsomorphic exports of [uhtml][uhtml]\n\n```\nnpm install uhtml-isomorphic\n```\n\n## Usage\n\nUse [uhtml][uhtml] or [uhtml-ssr][ssr] from a single import identifier depending on then environment you are running.\n\n``` js\nimport {render, html, svg} from 'uhtml-isomorphic';\n// const {render, html, svg} = require('uhtml');\n\nrender(document.body, html`\u003ch1\u003eHello 👋 µhtml\u003c/h1\u003e`);\n```\n\n## How\n\nWhile @webreflection recomends [require-overrides](https://github.com/WebReflection/require-overrides/#readme) in the offical documentation, that requires special flags or transforms to work.\n\n`uhtml-isomorphic` works by utilizing environment specific exports fields so that you can have dependency injection at the built-in module resolver layer.\nIt supports the following export fields:\n\n- `main` (cjs node)\n- `browser` (cjs browser)\n- `exports.import` (esm node)\n- `exports.reqire` (cjs node)\n- `exports.browser` (esm browser)\n\n## License\n\nMIT\n\n[uhtml]: https://github.com/WebReflection/uhtml\n[ssr]: https://github.com/WebReflection/uhtml-ssr\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcomnes%2Fuhtml-isomorphic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcomnes%2Fuhtml-isomorphic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcomnes%2Fuhtml-isomorphic/lists"}