UNPKG

broadcast-channel

Version:

A BroadcastChannel that works in New Browsers, Old Browsers, WebWorkers, NodeJs, Deno and iframes

17 lines (16 loc) 585 B
/** * because babel can only export on default-attribute, * we use this for the non-module-build * this ensures that users do not have to use * var BroadcastChannel = require('broadcast-channel').default; * but * var BroadcastChannel = require('broadcast-channel'); */ import { BroadcastChannel, createLeaderElection, clearNodeFolder, enforceOptions, beLeader } from './index.js'; module.exports = { BroadcastChannel: BroadcastChannel, createLeaderElection: createLeaderElection, clearNodeFolder: clearNodeFolder, enforceOptions: enforceOptions, beLeader: beLeader };