{"id":28507556,"url":"https://github.com/journeyapps/domparser.js","last_synced_at":"2025-07-05T06:30:46.248Z","repository":{"id":10456655,"uuid":"12627917","full_name":"journeyapps/domparser.js","owner":"journeyapps","description":"DOMParser for XML with line and column info","archived":false,"fork":false,"pushed_at":"2023-12-13T21:42:30.000Z","size":1450,"stargazers_count":5,"open_issues_count":16,"forks_count":6,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-06-08T20:47:07.507Z","etag":null,"topics":["browser","dom","javascript","xml"],"latest_commit_sha":null,"homepage":"https://journeyapps.com","language":"TypeScript","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/journeyapps.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":"2013-09-05T20:18:13.000Z","updated_at":"2023-09-26T05:25:18.000Z","dependencies_parsed_at":"2023-01-11T20:14:37.189Z","dependency_job_id":null,"html_url":"https://github.com/journeyapps/domparser.js","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/journeyapps/domparser.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/journeyapps%2Fdomparser.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/journeyapps%2Fdomparser.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/journeyapps%2Fdomparser.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/journeyapps%2Fdomparser.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/journeyapps","download_url":"https://codeload.github.com/journeyapps/domparser.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/journeyapps%2Fdomparser.js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263696034,"owners_count":23497478,"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":["browser","dom","javascript","xml"],"created_at":"2025-06-08T20:40:43.572Z","updated_at":"2025-07-05T06:30:46.242Z","avatar_url":"https://github.com/journeyapps.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# domparser\n\nThis is a pure JS implementation of DOM parsing, to be used instead of DOMParser in a browser. We use [sax.js](https://github.com/isaacs/sax-js/) for\nthe low-level parsing, and convert it to the browser's native Document object, or xmldom.\n\n## Why not use the built-in DOMParser?\n\nThe built-in DOMParser in modern browsers should be sufficient for most use cases, and has very good performance. However, it does have some limitations:\n\n1. Error reporting is very different on the different browsers. The browser typically stops after the first error.\n2. It's not possible to get access to position info (what line/column an element is on).\n\nThis project aims to be a lightweight replacement for the built-in parser, with better error handling and position\nreporting.\n\n## Usage\n\n    const { DOMParser } = require('@journeyapps/domparser');\n    var doc = new DOMParser().parseFromString(\"\u003ctest\u003exml\u003c/test\u003e\");\n\n## Supported environments\n\nShould work on any browser that supports ES6.\n\nTested on recent versions of Node, Chrome and Firefox.\n\nWhen running in Node, a recent version of xmldom is required.\n\n# License\n\nAll files in this project are licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjourneyapps%2Fdomparser.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjourneyapps%2Fdomparser.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjourneyapps%2Fdomparser.js/lists"}