Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

isomorphic-events

lucasbarros10MIT0.1.5

Isomorphic Events interface

Events, CustomEvent

readme

isomorphic-events

Emit and Listen events on node and browser.

Usage

Listen

const isomorphicEvents = require('isomorphic-events');

isomorphicEvents.on('event', () => {})

Dispatch

const isomorphicEvents = require('isomorphic-events');

isomorphicEvents.emit('event', {})