New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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

to
0.0.1-development

8

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

@@ -44,8 +44,8 @@ "main": "build/index.js",

"type": "git",
"url": "https://github.com/PierfrancescoSoffritti/event-bus.js.git"
"url": "https://github.com/PierfrancescoSoffritti/light-event-bus.js.git"
},
"bugs": {
"url": "https://github.com/PierfrancescoSoffritti/event-bus.js/issues"
"url": "https://github.com/PierfrancescoSoffritti/light-event-bus.js/issues"
},
"homepage": "https://github.com/PierfrancescoSoffritti/event-bus.js#readme",
"homepage": "https://github.com/PierfrancescoSoffritti/light-event-bus.js#readme",
"keywords": [

@@ -52,0 +52,0 @@ "eventbus",

@@ -1,6 +0,6 @@

# event-bus.js
# light-event-bus.js
[![Build Status](https://travis-ci.com/PierfrancescoSoffritti/event-bus.svg?branch=master)](https://travis-ci.com/PierfrancescoSoffritti/event-bus) [![codecov](https://codecov.io/gh/PierfrancescoSoffritti/event-bus/branch/master/graph/badge.svg)](https://codecov.io/gh/PierfrancescoSoffritti/event-bus) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![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/branch/master/graph/badge.svg)](https://codecov.io/gh/PierfrancescoSoffritti/light-event-bus) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
event-bus.js is a lightweight event bus for Node.js and the browser.
light-event-bus.js is a lightweight event bus for Node.js and the browser.

@@ -24,16 +24,16 @@ ## Table of Contents

You can [download the library here](./build). For the browser there are 2 choiches:
1. If you are not using ES6 modules: download `event-bus.min.js` and import it in your app using the `<script>` tag.
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 event-bus
npm install light-event-bus
```
or
```
yarn add event-bus
yarn add light-event-bus
```
Or download `event-bus.module.min.js` and import it using ES6 imports.
Or download `light-event-bus.module.min.js` and import it using ES6 imports.
These two files are also delivered through a CDN at these addresses:
1. `event-bus.min.js`: ___addurl___
2. `event-bus.module.min.js`: ___addurl___
1. `light-event-bus.min.js`: [https://unpkg.com/light-event-bus@0.0.0-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.0-development/build/event-bus.module.min.js](https://unpkg.com/light-event-bus@0.0.0-development/build/event-bus.module.min.js)

@@ -43,3 +43,3 @@ #### Example - browser

```html
<script src='../build/event-bus.min.js'></script>
<script src='../build/light-event-bus.min.js'></script>

@@ -60,5 +60,5 @@ <script>

// if you are using npm/yarn
import { EventBus } from 'event-bus'
import { EventBus } from 'light-event-bus'
// if you have downloaded the file manually
import { EventBus } from '../build/event-bus.module.min.js'
import { EventBus } from '../build/light-event-bus.module.min.js'

@@ -79,11 +79,11 @@ const eventBus = new EventBus()

```
npm install event-bus
npm install light-event-bus
```
or
```
yarn add event-bus
yarn add light-event-bus
```
#### Example - node
```javascript
const { EventBus } = require('event-bus')
const { EventBus } = require('light-event-bus')

@@ -112,3 +112,3 @@ const eventBus = new EventBus()

```javascript
const { EventBus } = require('event-bus')
const { EventBus } = require('light-event-bus')
```

@@ -118,3 +118,3 @@

```javascript
import { EventBus } from 'event-bus'
import { EventBus } from 'light-event-bus'
```

@@ -177,3 +177,3 @@

```javascript
const { EventBusSingleton } = require('event-bus')
const { EventBusSingleton } = require('light-event-bus')
```

@@ -183,3 +183,3 @@

```javascript
import { EventBusSingleton } from 'event-bus'
import { EventBusSingleton } from 'light-event-bus'
```

@@ -186,0 +186,0 @@