light-event-bus
Advanced tools
Comparing version 0.0.3-development to 1.0.0
{ | ||
"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() |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
8995
4
3
173