# vue-bus-manager

> vue bus event manager

Latest version **1.1.1** (published 2018-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-bus-manager
pnpm add vue-bus-manager
yarn add vue-bus-manager
bun add vue-bus-manager
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2018-07-13 |
| First published | 2018-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | tencx |
| Maintainers | tencx |
| Keywords | vue, vue-bus, vue-event |

## Links

- npm: https://www.npmjs.com/package/vue-bus-manager
- npm.io page: https://npm.io/package/vue-bus-manager

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.1.1 (latest) — 2018-07-13
- 1.1.0 — 2018-07-13
- 1.0.0 — 2018-07-13

## README

# Installation

```js
import VueBus from 'vue-bus-manager'
Vue.use(VueBus)
```

# Usage

```js
// event listener
export default {
	listener: {
		'event name'(argv) {
			this.listen(argv)
		}
	},

	methods: {
		listen(argv) {
			....
		}
	}
}
```

```js
// event trigger
this.$bus.$emit('event name', fn)
```


> no need for destory vue event because of we have done for you in vue lifecycle 'beforeDestroy'

---
_Source: https://npm.io/package/vue-bus-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
