{"id":20829741,"url":"https://github.com/dbspt/scorpion-html","last_synced_at":"2026-04-18T05:03:13.348Z","repository":{"id":47609531,"uuid":"516211559","full_name":"dbspt/scorpion-html","owner":"dbspt","description":"Scorpion-core support pack","archived":false,"fork":false,"pushed_at":"2022-07-25T07:35:37.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-27T14:10:54.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/dbspt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-21T03:30:12.000Z","updated_at":"2024-06-21T18:40:11.000Z","dependencies_parsed_at":"2022-09-11T15:31:21.703Z","dependency_job_id":null,"html_url":"https://github.com/dbspt/scorpion-html","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dbspt/scorpion-html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbspt%2Fscorpion-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbspt%2Fscorpion-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbspt%2Fscorpion-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbspt%2Fscorpion-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbspt","download_url":"https://codeload.github.com/dbspt/scorpion-html/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbspt%2Fscorpion-html/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31957158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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-17T23:21:49.720Z","updated_at":"2026-04-18T05:03:13.292Z","avatar_url":"https://github.com/dbspt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scorpion HTML\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n\nScorpion-core support pack.\n\n### Installation\n\n```console\n$ npm install @dbservices/scorpion-html\n```\n\n### Features, Usage, and Examples\n\n- **Use tagged template literals as an HTML template engine.** For example:\n\n  ```typescript\n  import html from \"@dbservices/scorpion-html\";\n\n  console.log(html`\u003cp\u003e${\"Scorpion HTML\"}\u003c/p\u003e`); // =\u003e \u003cp\u003eScorpion HTML\u003c/p\u003e\n  ```\n\n- **Safe by default.** For example:\n\n  ```typescript\n  console.log(html`\u003cp\u003e${`\u003cscript\u003ealert(1);\u003c/script\u003e`}\u003c/p\u003e`); // =\u003e \u003cp\u003e\u0026#x3C;script\u0026#x3E;alert(1);\u0026#x3C;/script\u0026#x3E;\u003c/p\u003e\n  ```\n\n- **Unsafely interpolate trusted HTML with `$${...}`.** For example:\n\n  ```typescript\n  console.log(html`\u003cp\u003e$${`\u003cspan\u003eScorpion HTML\u003c/span\u003e`}\u003c/p\u003e`); // =\u003e \u003cp\u003e\u003cspan\u003eScorpion HTML\u003c/span\u003e\u003c/p\u003e\n  ```\n\n- **Join interpolated arrays.** For example:\n\n  ```typescript\n  console.log(html`\u003cp\u003e${[\"Scorpion\", \" \", \"HTML\"]}\u003c/p\u003e`); // =\u003e \u003cp\u003eScorpion HTML\u003c/p\u003e\n  ```\n\n  Array interpolations are safe by default; if you wish to unsafely interpolate an array of trusted HTML use `$${[...]}`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbspt%2Fscorpion-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbspt%2Fscorpion-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbspt%2Fscorpion-html/lists"}