{"id":20504298,"url":"https://github.com/stencil-community/stencil-helmet","last_synced_at":"2025-04-13T20:50:18.711Z","repository":{"id":38290732,"uuid":"119604777","full_name":"stencil-community/stencil-helmet","owner":"stencil-community","description":"Declaratively update the \u003chead\u003e from a Stencil app.","archived":false,"fork":false,"pushed_at":"2023-10-17T01:23:46.000Z","size":389,"stargazers_count":25,"open_issues_count":12,"forks_count":10,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-27T11:11:53.971Z","etag":null,"topics":["component","stencil"],"latest_commit_sha":null,"homepage":"https://npm.im/@stencil-community/helmet","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/stencil-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-01-30T22:52:55.000Z","updated_at":"2024-05-28T15:57:39.000Z","dependencies_parsed_at":"2023-01-22T14:00:50.057Z","dependency_job_id":null,"html_url":"https://github.com/stencil-community/stencil-helmet","commit_stats":null,"previous_names":["stencil-community/stencil-helmet","ionic-team/stencil-helmet"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stencil-community%2Fstencil-helmet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stencil-community%2Fstencil-helmet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stencil-community%2Fstencil-helmet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stencil-community%2Fstencil-helmet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stencil-community","download_url":"https://codeload.github.com/stencil-community/stencil-helmet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248534013,"owners_count":21120200,"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":["component","stencil"],"created_at":"2024-11-15T19:37:15.813Z","updated_at":"2025-04-13T20:50:18.634Z","avatar_url":"https://github.com/stencil-community.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Community"],"readme":"[![@stencil-community/helmet](https://img.shields.io/npm/v/@stencil-community/helmet.svg)](https://npm.im/@stencil-community/helmet)\n\n# Stencil Helmet\n\n\u003e Declaratively update the `\u003chead\u003e` from a Stencil app.\n\n---\n\nThis is a [Stencil](https://github.com/ionic-team/stencil) component meant to be used within Stencil apps to declaratively update the document `\u003chead\u003e`. You pass it elements that you'd normally place in `\u003chead\u003e`, and it updates `\u003chead\u003e` accordingly. Each instance will override duplicate tags from preceding instances.\n\n**Note** that, because it uses virtual DOM as input, stencil-helmet can only be used within Stencil apps and not as a standalone web component.\n\n## Installation\n\n```\nnpm install @stencil-community/helmet\n```\n\n## Usage\n\n```jsx\nimport Helmet from '@stencil-community/helmet';\n\n//...\nexport class MyComponent {\n  render() {\n    return (\n      \u003cdiv\u003e\n        \u003cHelmet\u003e\n          \u003ctitle\u003e{this.title}\u003c/title\u003e\n          \u003cmeta name=\"description\" content={this.description}/\u003e\n          \u003clink rel=\"stylesheet\" href=\"/styles.css\"/\u003e\n        \u003c/Helmet\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstencil-community%2Fstencil-helmet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstencil-community%2Fstencil-helmet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstencil-community%2Fstencil-helmet/lists"}