{"id":19501118,"url":"https://github.com/gitbookio/html2hs","last_synced_at":"2025-10-10T03:32:41.606Z","repository":{"id":57267844,"uuid":"42018881","full_name":"GitbookIO/html2hs","owner":"GitbookIO","description":"Convert HTML to hyperscript for virtual-dom","archived":false,"fork":false,"pushed_at":"2015-09-25T20:04:53.000Z","size":188,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-01T11:57:16.686Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GitbookIO.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":"2015-09-06T21:08:29.000Z","updated_at":"2023-09-08T17:01:23.000Z","dependencies_parsed_at":"2022-09-02T05:41:00.577Z","dependency_job_id":null,"html_url":"https://github.com/GitbookIO/html2hs","commit_stats":null,"previous_names":["samypesse/html2hs"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/GitbookIO/html2hs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Fhtml2hs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Fhtml2hs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Fhtml2hs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Fhtml2hs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GitbookIO","download_url":"https://codeload.github.com/GitbookIO/html2hs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Fhtml2hs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002624,"owners_count":26083425,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-10T22:11:14.800Z","updated_at":"2025-10-10T03:32:41.587Z","avatar_url":"https://github.com/GitbookIO.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html2hs\n\n[![NPM version](https://badge.fury.io/js/html2hs.svg)](http://badge.fury.io/js/html2hs) [![Build Status](https://travis-ci.org/GitbookIO/html2hs.svg?branch=master)](https://travis-ci.org/GitbookIO/html2hs)\n\nParse HTML to [hyperscript](https://github.com/Matt-Esch/virtual-dom/tree/master/virtual-hyperscript) (for [virtual-dom](https://github.com/Matt-Esch/virtual-dom)).\n\n``` js\nvar html2hs = require('html2hs');\n\nvar hscript = html2hs('\u003ch1\u003eHello World\u003c/h1\u003e');\n\n// hscript = 'h(\"h1\", [ \"Hello World\" ])'\n```\n\n`html2hs` also accept an option argument:\n\n```js\n{\n    // true: pre tags will be parsed like other tags\n    pre: false\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitbookio%2Fhtml2hs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitbookio%2Fhtml2hs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitbookio%2Fhtml2hs/lists"}