1.5.1 • Published 10 months ago

use-app-events v1.5.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

use-app-events

NPM Version NPM Unpacked Size Libraries.io dependency status for latest release

Event system for global communication in JavaScript.

šŸŒ Organize and manage your global app state via events.
šŸ“Ø Send events and data from one part of the app to another.
šŸ“© Listen for events to occur and process their payload.

Facts

šŸ“¦ Small in size
šŸƒ Tree-shakable
šŸ“ Well documented
šŸ›”ļø Strictly typed with TypeScript
ā™»ļø Works between different browser tabs
šŸŖ Exports a convenient hook for React developers

Install

npm

npm install use-app-events

pnpm

pnpm add use-app-events

Exports

  • notifyEventListeners
    • Function to notify all listeners of the specified event type subscribed via listenForEvents.
  • listenForEvents
    • Function to subscribe and listen for the specified event type(s) to occur in the app.
  • useAppEvents
    • Hook for managing application events in React.
  • heap
    • (readonly) Collection of resources operated by the package.
  • options
    • Collection of options used to adjust the behavior of the package.

This is a truncated version of README to reduce the package size.

[See full docs on GitHub]

License

MIT

Author

Maksym Marchuk

1.2.0

11 months ago

1.5.1

10 months ago

1.5.0

10 months ago

1.4.1

10 months ago

1.3.2

10 months ago

1.4.0

10 months ago

1.3.1

11 months ago

1.2.2

11 months ago

1.3.0

11 months ago

1.2.1

11 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago