{"id":17446000,"url":"https://github.com/jamen/h2dom","last_synced_at":"2025-10-07T01:43:35.643Z","repository":{"id":57260011,"uuid":"93978247","full_name":"jamen/h2dom","owner":"jamen","description":"Create DOM nodes using h functions","archived":false,"fork":false,"pushed_at":"2018-02-24T19:24:33.000Z","size":10,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-12T11:43:42.982Z","etag":null,"topics":["dom","dom-node","h","h2","h2spec","html","virtual-dom"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamen.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-11T03:01:59.000Z","updated_at":"2021-12-19T15:33:51.000Z","dependencies_parsed_at":"2022-08-28T21:50:47.075Z","dependency_job_id":null,"html_url":"https://github.com/jamen/h2dom","commit_stats":null,"previous_names":["hyper2/h2dom"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fh2dom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fh2dom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fh2dom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fh2dom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/h2dom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234143353,"owners_count":18786140,"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":["dom","dom-node","h","h2","h2spec","html","virtual-dom"],"created_at":"2024-10-17T18:19:59.671Z","updated_at":"2025-09-25T01:30:58.424Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# h2dom\n\n\u003e Create DOM nodes using h functions\n\n_**NOTICE** This is not a patch function, it simply creates DOM nodes._\n\n## Example\n\n```js\nvar node = h('div', { class: 'foo' }, [\n  h('span', null, 'foo'),\n  ' bar'\n])\n\ndocument.body.appendChild(node)\n```\n\n## Install\n\n```\nnpm i h2dom\n```\n\n## Usage\n\n[This function follows the h2spec guidelines.](https://github.com/hyper2/h2spec)\n\n### `h(tag, data?, children?)`\n\n+ `tag`: the element name passed to `document.createElement(name)`\n+ `data` (optional): an object containing the attributes to set on the element\n+ `children` (optional): an array of DOM nodes or primitive values to be listed under `element.childNodes`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fh2dom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fh2dom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fh2dom/lists"}