{"id":25766671,"url":"https://github.com/kiralt/isomorphic-htmlparser","last_synced_at":"2025-11-08T23:02:18.963Z","repository":{"id":65189476,"uuid":"586597774","full_name":"KiraLT/isomorphic-htmlparser","owner":"KiraLT","description":"HTML parser that works both in JavaScript and NodeJS with TypeScript support","archived":false,"fork":false,"pushed_at":"2024-01-23T14:28:48.000Z","size":436,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-02T06:56:12.473Z","etag":null,"topics":["cheerio","htmlparser","javascript","nodejs"],"latest_commit_sha":null,"homepage":"https://kiralt.github.io/isomorphic-htmlparser/","language":"TypeScript","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/KiraLT.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-08T17:37:20.000Z","updated_at":"2023-11-02T19:21:49.000Z","dependencies_parsed_at":"2023-02-14T18:01:04.458Z","dependency_job_id":"0fa5c0b6-566b-462d-a962-01e01d971804","html_url":"https://github.com/KiraLT/isomorphic-htmlparser","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KiraLT%2Fisomorphic-htmlparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KiraLT%2Fisomorphic-htmlparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KiraLT%2Fisomorphic-htmlparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KiraLT%2Fisomorphic-htmlparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KiraLT","download_url":"https://codeload.github.com/KiraLT/isomorphic-htmlparser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240947658,"owners_count":19883032,"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":["cheerio","htmlparser","javascript","nodejs"],"created_at":"2025-02-26T23:16:58.504Z","updated_at":"2025-11-08T23:02:13.906Z","avatar_url":"https://github.com/KiraLT.png","language":"TypeScript","readme":"# Isomorphic HTMLParser\n\n[![CodeQL](https://github.com/KiraLT/isomorphic-htmlparser/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/KiraLT/isomorphic-htmlparser/actions/workflows/codeql-analysis.yml)\n[![codecov](https://codecov.io/gh/KiraLT/isomorphic-htmlparser/branch/main/graph/badge.svg?token=E599EPAOPM)](https://codecov.io/gh/KiraLT/isomorphic-htmlparser)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n\nHTML parser that works both in JavaScript and NodeJS with TypeScript support.\n\nMissing something? Create [feature request](https://github.com/KiraLT/isomorphic-htmlparser/issues/new?assignees=\u0026labels=enhancement\u0026template=feature_request.md\u0026title=)!\n\nRead [Documentation 📘](https://kiralt.github.io/isomorphic-htmlparser/)\n\nCheck [Demo 🎁](https://kiralt.github.io/isomorphic-htmlparser/demo/)\n\n## Installation\n\n[![npm version](https://badge.fury.io/js/isomorphic-htmlparser.svg)](https://www.npmjs.com/package/isomorphic-htmlparser)\n[![npm](https://img.shields.io/npm/dt/isomorphic-htmlparser)](https://www.npmjs.com/package/isomorphic-htmlparser)\n\n### Install with NPM/yarn:\n\n```bash\n# NPM\nnpm install isomorphic-htmlparser\n# Yarn\nyarn add isomorphic-htmlparser\n```\n\nImport what you need:\n\n```typescript\nimport { parseHTML } from 'isomorphic-htmlparser'\n\nconst el = parseHTML(html).find('.my-class \u003e a.title')\nconst text = parseHTML(html).extract('.my-class \u003e a.title @ text | trim')\n\nconsole.log(el.text.trim() === text)\n// true\n```\n\n\u003e Always import only what is necessary to take full advantage of [tree shaking](https://developers.google.com/web/fundamentals/performance/optimizing-javascript/tree-shaking).\n\n## Load directly in the browser\n\n### Include UMD bundle\n\nInclude script from CDN and use `isomorphicHtmlparser` global variable:\n\n```html\n\u003cscript src=\"https://unpkg.com/isomorphic-htmlparser\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    const { parseHTML } = window.isomorphicHtmlparser\n\n    const el = parseHTML(html).find('.my-class \u003e a.title')\n    const text = parseHTML(html).extract('.my-class \u003e a.title @ text | trim')\n\n    console.log(el.text.trim() === text)\n    // true\n\u003c/script\u003e\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiralt%2Fisomorphic-htmlparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiralt%2Fisomorphic-htmlparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiralt%2Fisomorphic-htmlparser/lists"}