light-event-bus
Advanced tools
Comparing version
{ | ||
"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 | ||
[](https://travis-ci.com/PierfrancescoSoffritti/event-bus) [](https://codecov.io/gh/PierfrancescoSoffritti/event-bus) [](https://opensource.org/licenses/MIT) | ||
[](https://travis-ci.org/PierfrancescoSoffritti/light-event-bus.js) [](https://codecov.io/gh/PierfrancescoSoffritti/light-event-bus) [](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 @@ |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
8539
-9.82%3
-40%0
-100%