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.

82 lines (81 loc) 2.07 kB
{ "name": "@mundoit-lib/plugin-vue-event", "version": "1.0.2", "description": "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.", "license": "MIT", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" }, "./plugin": { "types": "./dist/plugin.d.ts", "import": "./dist/plugin.js", "require": "./dist/plugin.cjs" }, "./eventBus": { "types": "./dist/eventBus.d.ts", "import": "./dist/eventBus.js", "require": "./dist/eventBus.cjs" } }, "files": [ "dist", "src" ], "repository": { "type": "git", "url": "https://github.com/mundoit-lib/plugin-vue-event" }, "bugs": { "url": "https://github.com/mundoit-lib/plugin-vue-event/issues" }, "homepage": "https://github.com/mundoit-lib/plugin-vue-event", "keywords": [ "vue", "vue3", "vue2", "vue-plugin", "events", "event-bus", "custom-events", "vue-global-events", "vue-plugin-event-bus", "vue-plugin-events", "vue-events", "javascript", "event-system", "frontend", "vue-library" ], "author": "@mundoit-lib", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "tsup", "clean": "rm -rf dist && rm -rf node_modules", "postinstall": "npx vue-demi-fix" }, "dependencies": { "mitt": "^3.0.1", "vue-demi": "0.14.10" }, "devDependencies": { "@types/node": "^22.19.1", "tsup": "^8.5.1", "typescript": "5.9.3" }, "peerDependencies": { "@vue/composition-api": "^1.0.0-rc.1", "vue": "^2.0.0 || >=3.0.0" }, "peerDependenciesMeta": { "@vue/composition-api": { "optional": true } } }