{"id":17446022,"url":"https://github.com/jamen/hyperapp-head","last_synced_at":"2025-04-02T10:43:10.925Z","repository":{"id":96784706,"uuid":"183108641","full_name":"jamen/hyperapp-head","owner":"jamen","description":"Patch Hyperapp \u003chead\u003e nodes.","archived":false,"fork":false,"pushed_at":"2019-04-27T08:30:30.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T01:48:19.833Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jamen.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-23T23:08:13.000Z","updated_at":"2021-12-19T15:27:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"be476fd5-1b41-413c-a188-9dd6d623bec7","html_url":"https://github.com/jamen/hyperapp-head","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fhyperapp-head","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fhyperapp-head/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fhyperapp-head/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fhyperapp-head/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/hyperapp-head/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246802594,"owners_count":20836365,"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":[],"created_at":"2024-10-17T18:20:47.219Z","updated_at":"2025-04-02T10:43:10.897Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @finepoint/hyperapp-head\n\nPatch Hyperapp `\u003chead\u003e` nodes.\n\n## Install\n\n```\nnpm i @finepoint/hyperapp-head\n```\n\n## Usage\n\n```js\nimport { patchHead } from '@finepoint/hyperapp-head'\n\npatchHead(\n    \u003chead\u003e\n        \u003ctitle\u003eHello world.\u003c/title\u003e\n    \u003c/head\u003e\n)\n```\n\nHere are some notes about the implementation:\n\n- It only patches `\u003ctitle\u003e`, `\u003cmeta\u003e`, and `\u003clink\u003e` elements. There may be others (such as `\u003cbase\u003e`) but they wont be patched.\n- It is not recursive because `\u003chead\u003e` is usually flat. It focuses on matching keys instead, such as `\u003cmeta name\u003e`, `\u003cmeta property\u003e`, `\u003clink rel\u003e`, and so on.\n- There is a `mergeHead(targetHead, head)` function for patching in tools or servers. For example, you have the site's `\u003chead\u003e` and the route page `\u003chead\u003e`, these would need be merged when prerendering.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fhyperapp-head","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fhyperapp-head","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fhyperapp-head/lists"}