This package has been deprecated

Author message:

use @nextcloud/event-bus

nextcloud-event-bus
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

nextcloud-event-bus

A event bus to communicate between Nextcloud components

Usage

import { subscribe, unsubscribe, emit } from 'nextcloud-event-bus'

const h = e => console.info(e)

subscribe('a', h)
subscribe('b', h)

emit({
    name: 'a',
    data: 123,
})

unsubscribe('a', h)
unsubscribe('b', h)

Readme

Keywords

Package Sidebar

Install

npm i nextcloud-event-bus

Weekly Downloads

7

Version

0.0.3

License

GPL-3.0-or-later

Unpacked Size

52.2 kB

Total Files

29

Last publish

Collaborators

  • christophwurst