{"id":17419615,"url":"https://github.com/bendrucker/append-hook","last_synced_at":"2025-09-10T21:16:24.381Z","repository":{"id":57182714,"uuid":"41434707","full_name":"bendrucker/append-hook","owner":"bendrucker","description":"virtual-dom hook for element append","archived":false,"fork":false,"pushed_at":"2019-08-19T21:51:24.000Z","size":15,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-11T10:04:06.658Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bendrucker.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}},"created_at":"2015-08-26T15:49:35.000Z","updated_at":"2019-07-12T17:11:50.000Z","dependencies_parsed_at":"2022-09-11T22:40:39.971Z","dependency_job_id":null,"html_url":"https://github.com/bendrucker/append-hook","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/bendrucker/append-hook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fappend-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fappend-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fappend-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fappend-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/append-hook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Fappend-hook/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260572347,"owners_count":23030054,"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-17T02:27:52.693Z","updated_at":"2025-06-18T14:38:18.681Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# append-hook [![Build Status](https://travis-ci.org/bendrucker/append-hook.svg?branch=master)](https://travis-ci.org/bendrucker/append-hook) [![Greenkeeper badge](https://badges.greenkeeper.io/bendrucker/append-hook.svg)](https://greenkeeper.io/)\n\n\u003e virtual-dom hook for element append\n\n\n## Install\n\n```\n$ npm install --save append-hook\n```\n\n\n## Usage\n\n```js\nvar AppendHook = require('append-hook')\nvar h = require('virtual-dom/h')\n\nvar vtree = h('div', {\n  onAppend: AppendHook(callback)  \n})\n\nfunction callback (node) {\n  //=\u003e div appended to the DOM\n}\n```\n\n## API\n\n#### `AppendHook(callback)` -\u003e `object`\n\n##### callback\n\n*Required*  \nType: `function`\n\nA callback to call when the virtual node is appended to the DOM as a real node.\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fappend-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Fappend-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Fappend-hook/lists"}