{"id":30107038,"url":"https://github.com/benignware/htmldom2","last_synced_at":"2025-08-10T01:33:00.306Z","repository":{"id":57268003,"uuid":"160999625","full_name":"benignware/htmldom2","owner":"benignware","description":"Parse html on top of xmldom and htmlparser2","archived":false,"fork":false,"pushed_at":"2022-08-31T12:26:59.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-25T00:30:57.878Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benignware.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":"2018-12-09T03:12:53.000Z","updated_at":"2022-08-31T12:22:16.000Z","dependencies_parsed_at":"2022-09-02T02:01:58.781Z","dependency_job_id":null,"html_url":"https://github.com/benignware/htmldom2","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/benignware/htmldom2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fhtmldom2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fhtmldom2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fhtmldom2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fhtmldom2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benignware","download_url":"https://codeload.github.com/benignware/htmldom2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fhtmldom2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269548500,"owners_count":24436113,"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-08-09T02:00:10.424Z","response_time":111,"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":"2025-08-10T01:31:56.681Z","updated_at":"2025-08-10T01:33:00.267Z","avatar_url":"https://github.com/benignware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# htmldom2\n\nParsing html on top of [xmldom](https://www.npmjs.com/package/xmldom) and [htmlparser2](https://www.npmjs.com/package/htmlparser2)\n\n\n## Usage\n\n\n### Parse html from a string\n\n```js\nconst source = `\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003ctitle\u003eHello World\u003c/title\u003e\n  \u003cbody\u003e\n    \u003ch1\u003eHello World\u003c/h1\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n`;\nconst { DOMParser } = require('htmldom2');\nconst document = new DOMParser().parseFromString(source, 'text/html');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenignware%2Fhtmldom2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenignware%2Fhtmldom2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenignware%2Fhtmldom2/lists"}