{"id":44465168,"url":"https://github.com/pldg/xth","last_synced_at":"2026-02-12T20:05:07.566Z","repository":{"id":54877860,"uuid":"166368224","full_name":"pldg/xth","owner":"pldg","description":"Transform XML-XSLT to html in the browser","archived":false,"fork":false,"pushed_at":"2022-09-07T18:12:31.000Z","size":47,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-02T01:38:24.686Z","etag":null,"topics":["browser","client-side","html","npm","npm-package","stylesheet","xhtml","xml","xml-parsing","xslt","xslt-stylesheet"],"latest_commit_sha":null,"homepage":"https://pldg.github.io/xth/","language":"JavaScript","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/pldg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://www.paypal.me/lucapoldelmengo"}},"created_at":"2019-01-18T08:07:59.000Z","updated_at":"2022-09-10T14:20:35.000Z","dependencies_parsed_at":"2022-08-14T05:30:50.924Z","dependency_job_id":null,"html_url":"https://github.com/pldg/xth","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pldg/xth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pldg%2Fxth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pldg%2Fxth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pldg%2Fxth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pldg%2Fxth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pldg","download_url":"https://codeload.github.com/pldg/xth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pldg%2Fxth/sbom","scorecard":{"id":737578,"data":{"date":"2025-08-11","repo":{"name":"github.com/pldg/xth","commit":"317bcfa12953c3377f90f6a6b44fde10a613cd2b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T16:21:08.341Z","repository_id":54877860,"created_at":"2025-08-22T16:21:08.341Z","updated_at":"2025-08-22T16:21:08.341Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29379739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T19:05:20.189Z","status":"ssl_error","status_checked_at":"2026-02-12T19:01:44.216Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["browser","client-side","html","npm","npm-package","stylesheet","xhtml","xml","xml-parsing","xslt","xslt-stylesheet"],"created_at":"2026-02-12T20:05:06.188Z","updated_at":"2026-02-12T20:05:07.554Z","avatar_url":"https://github.com/pldg.png","language":"JavaScript","funding_links":["https://www.paypal.me/lucapoldelmengo"],"categories":[],"sub_categories":[],"readme":"# XTH\r\n\r\n![size-badge](https://img.shields.io/github/size/pldg/xth/xth.min.js.svg)\r\n![downloads-badge](https://img.shields.io/npm/dt/xth.svg)\r\n\r\nWith *xth* (xml to html) you can load an XML file and its associated XSLT stylesheet and transform them to HTML.\r\n\r\nNo dependencies, weight only 1.3kb.\r\n\r\nWorks client-side in all major browsers including Internet Explorer 10 and newer versions.\r\n\r\n## Install\r\n\r\n### CDN\r\n\r\n```html\r\n\u003cscript src=\"https://unpkg.com/xth/xth.min.js\"\u003e\u003c/script\u003e\r\n```\r\n\r\n### NPM\r\n\r\n`npm install --save xth`\r\n\r\n## Example\r\n\r\n```js\r\nvar xml = 'path/to/xml';\r\nvar xsl = 'path/to/xsl';\r\n\r\nxth(xml, xsl, function(html) {\r\n  console.log(html);\r\n});\r\n```\r\n\r\n## Try online\r\n\r\nGo to [pldg.github.io/xth](https://pldg.github.io/xth/) (the source code is in gh-pages branch).\r\n\r\n## Test locally\r\n\r\n1. Execute `python3 -m http.server`\r\n2. Open `http://localhost:8000/test/`\r\n\r\n## API\r\n\r\n### `xml`\r\n\r\n*Required* \u003cbr\u003e\r\n*Type:* `String`\r\n\r\nPath to XML file.\r\n\r\n### `xsl`\r\n\r\n*Required* \u003cbr\u003e\r\n*Type:* `String`\r\n\r\nPath to XSLT file.\r\n\r\n### `callback`\r\n\r\n*Required* \u003cbr\u003e\r\n*Type:* `Function`\r\n\r\n`callback(html)` takes the parsed HTML as argument.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpldg%2Fxth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpldg%2Fxth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpldg%2Fxth/lists"}