Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

light-event-bus

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

light-event-bus - npm Package Compare versions

Comparing version 0.0.3-development to 1.0.0

4

package.json
{
"name": "light-event-bus",
"version": "0.0.3-development",
"version": "1.0.0",
"description": "Lightweight event bus for node and the browser.",

@@ -52,2 +52,3 @@ "main": "build/light-event-bus.min.js",

"eventbus",
"lightweight",
"event-bus",

@@ -60,3 +61,2 @@ "event",

"build/light-event-bus.min.js",
"build/light-event-bus.module.min.js",
"README.md",

@@ -63,0 +63,0 @@ "LICENSE"

# light-event-bus.js
![](https://img.shields.io/npm/v/light-event-bus.svg?colorB=g)
[![](https://img.shields.io/npm/v/light-event-bus.svg?colorB=g)](https://www.npmjs.com/package/light-event-bus)
[![Build Status](https://travis-ci.org/PierfrancescoSoffritti/light-event-bus.js.svg?branch=master)](https://travis-ci.org/PierfrancescoSoffritti/light-event-bus.js) [![codecov](https://codecov.io/gh/PierfrancescoSoffritti/light-event-bus.js/branch/master/graph/badge.svg)](https://codecov.io/gh/PierfrancescoSoffritti/light-event-bus.js) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

@@ -24,20 +24,11 @@

#### Download - browser
You can [download the library here](./build). For the browser there are 2 choiches:
1. If you are not using ES6 modules: download `light-event-bus.min.js` and import it in your app using the `<script>` tag.
2. If you are using ES6 modules: run
```
npm install light-event-bus
```
or
```
yarn add light-event-bus
```
Or download `light-event-bus.module.min.js` and import it using ES6 imports.
You can [download the library here](./build). For the browser there are 2 options:
1. Download `light-event-bus.min.js` [here](./build/light-event-bus.min.js) and import it in your app using the `<script>` tag.
2. If you are using ES modules, download the library ([here](./build/light-event-bus.min.js) or through [NPM](https://www.npmjs.com/package/light-event-bus)) and import it using ES6 imports.
These two files are also delivered through a CDN at these addresses:
1. `light-event-bus.min.js`: [https://unpkg.com/light-event-bus@0.0.3-development/build/event-bus.min.js](https://unpkg.com/light-event-bus@0.0.0-development/build/event-bus.min.js)
2. `light-event-bus.module.min.js`: [https://unpkg.com/light-event-bus@0.0.3-development/build/event-bus.module.min.js](https://unpkg.com/light-event-bus@0.0.0-development/build/event-bus.module.min.js)
This file is also delivered through a CDN at this address:
- `light-event-bus.min.js`: [https://unpkg.com/light-event-bus@0.0.3-development/build/event-bus.min.js](https://unpkg.com/light-event-bus@0.0.0-development/build/event-bus.min.js)
#### Example - browser
1. Not using ES6 modules
1. Importing with `<script>` tag
```html

@@ -56,9 +47,6 @@ <script src='../build/light-event-bus.min.js'></script>

1. Using ES6 modules
2. Importing ES module
```html
<script type='module'>
// if you are using npm/yarn
import { EventBus } from 'light-event-bus'
// if you have downloaded the file manually
import { EventBus } from '../build/light-event-bus.module.min.js'

@@ -65,0 +53,0 @@ const eventBus = new EventBus()

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc