UNPKG

@mundoit-lib/plugin-vue-event

Version:

Vue 3 plugin to handle global events between components, inspired by vue-events. This plugin provides a simple and efficient event bus system, allowing to emit, listen and unregister events in an intuitive way. Compatible with Vue 2 and Vue 3.

5 lines (4 loc) 180 B
export { EventBusEvents, EventBusInstance, eventBus, useEventBus } from './eventBus.cjs'; export { default as eventsPlugin } from './plugin.cjs'; import 'mitt'; import 'vue-demi';