{"id":15731788,"url":"https://github.com/sonidelav/vue3-instance-events","last_synced_at":"2026-05-07T18:47:07.316Z","repository":{"id":144580821,"uuid":"497001164","full_name":"sonidelav/vue3-instance-events","owner":"sonidelav","description":"Vue3 Instance Events Plugin","archived":false,"fork":false,"pushed_at":"2022-05-28T10:11:35.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T16:58:07.636Z","etag":null,"topics":["events","instance","javascript","plugin","typescript","vue","vue3"],"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/sonidelav.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":"2022-05-27T13:09:34.000Z","updated_at":"2022-05-27T17:14:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"91285349-e42b-4a53-b9e9-a3d1f2dbd5f4","html_url":"https://github.com/sonidelav/vue3-instance-events","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"7eb52008fc9e4f55021327613cb1a35c9826e625"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonidelav%2Fvue3-instance-events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonidelav%2Fvue3-instance-events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonidelav%2Fvue3-instance-events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonidelav%2Fvue3-instance-events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonidelav","download_url":"https://codeload.github.com/sonidelav/vue3-instance-events/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246408104,"owners_count":20772230,"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":["events","instance","javascript","plugin","typescript","vue","vue3"],"created_at":"2024-10-04T00:05:32.436Z","updated_at":"2026-05-07T18:47:07.161Z","avatar_url":"https://github.com/sonidelav.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue3 Instance Events Plugin\n\nAdds `.on` and `.emit` into instance API\n\n## Install\n\n### NPM\n\n```sh\nnpm install vue3-instance-events\n```\n\nYarn\n\n```sh\nyarn add vue3-instance-events\n```\n\n## Usage\n\n```js\nimport { VueInstanceEvents } from 'vue3-instance-events'\nimport { createApp } from 'vue'\nimport App from './App.vue'\n\nconst app = createApp(App).use(VueInstanceEvents)\nconst instance = app.mount('#app')\n\ninstance.on('showed', () =\u003e {\n    ...\n})\n\n// Event names in camelCase\ninstance.emit('showComponent')\n```\n\n## Vue Documentation\n\n[Breaking Changes v2 to v3 Migrations](https://v3-migration.vuejs.org/breaking-changes/events-api.html#_3-x-update)\n\n\u003e We removed $on, $off and $once methods from the instance completely. $emit is still a part of the existing API as it's used to trigger event handlers declaratively attached by a parent component.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonidelav%2Fvue3-instance-events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonidelav%2Fvue3-instance-events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonidelav%2Fvue3-instance-events/lists"}