This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

custom-event-with-subscribers

1.3.3 • Public • Published

custom-event-with-subscribers

Small library for creating custom event with subscribers.

You can use with React hooks, for example: custom-event-with-subscribers-react

Use with Angular framework: custom-event-with-subscribers-decorators

API

    dispatch(nameEvent: string, params?: any) => void - Create and run custom event
    subscribe(event: string, callback: Function) => void - Subscribe on custom event
    unsubscribe(event: string) => void - Unsubscribe on custom event

Readme

Keywords

none

Package Sidebar

Install

npm i custom-event-with-subscribers

Weekly Downloads

4

Version

1.3.3

License

ISC

Unpacked Size

2.19 kB

Total Files

4

Last publish

Collaborators

  • alex_zaiets