{"library":"vue-global-events","type":"library","category":null,"description":"Vue Global Events is a lightweight library for Vue 3 that enables developers to register global keyboard and mouse events directly within Vue templates using familiar Vue event modifiers. It abstracts away the complexities of `addEventListener` and `removeEventListener` on `document` or `window`, automatically handling event lifecycle management in sync with component unmounting. The current stable version is 3.0.1, specifically designed for Vue 3. It differs from manual global event handling by leveraging Vue's declarative syntax and reactivity system, allowing events to be conditionally enabled/disabled with `v-if` and ensuring proper cleanup, including support for Server-Side Rendering (SSR). While there isn't a strict release cadence, updates are typically made to align with new Vue versions or to introduce minor enhancements and bug fixes.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","vue","events","global","window","document","shortcuts","anywhere","listeners","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vue-global-events","imports":["import { GlobalEvents } from 'vue-global-events'","import { createApp } from 'vue'; import { GlobalEvents } from 'vue-global-events'; const app = createApp(...); app.component('GlobalEvents', GlobalEvents);"]},{"cmd":"yarn add vue-global-events","imports":[]},{"cmd":"pnpm add vue-global-events","imports":[]}],"homepage":null,"github":"https://github.com/shentao/vue-global-events","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue-global-events","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vue-global-events/compatibility"}}