# bootstrap4-videoembed

> Pure javascript video embed plugin for Bootstrap 4. ES6 transpiled to ES5 with babel.

Latest version **1.0.3** (published 2018-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install bootstrap4-videoembed
pnpm add bootstrap4-videoembed
yarn add bootstrap4-videoembed
bun add bootstrap4-videoembed
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-01-27 |
| First published | 2017-12-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | https://github.com/rjjakes |
| Maintainers | rjjakes |
| Keywords | bootstrap, bootstrap 4, video, youtube, vimeo, es6, browser |

## Links

- npm: https://www.npmjs.com/package/bootstrap4-videoembed
- Repository: https://github.com/rjjakes/bootstrap4.videoembed.js
- Homepage: https://github.com/rjjakes/es6.videoembed.js#readme
- Issues: https://github.com/rjjakes/es6.videoembed.js/issues
- npm.io page: https://npm.io/package/bootstrap4-videoembed

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2018-01-27
- 1.0.2 — 2017-12-27
- 1.0.1 — 2017-12-21
- 1.0.0 — 2017-12-18

## README

# bootstrap4.videoembed.js

Embed Youtube and/or Vimeo videos into your Bootstrap 4 site. Creates a clickable
thumbnail that opens a modal containing the video. Supports autoplay.
    
## Installation 
  
```
npm install bootstrap4-videoembed 
npm run build
```

or 
```
yarn add bootstrap4-videoembed 
yarn run build
```

or 

Just copy `distribution/bootstrap4.videoembed.min.js` and include in your site 
just above the `</body>` tag if you don't want to recompile from source. 

## Usage

Once, you have the plugin included on your page, you can define your videos
like this:

```html
<a class="videoembed" href="https://www.youtube.com/watch?v=e452W2Kj-yg" data-autoplay="false">[video image goes here]</a>
<a class="videoembed" href="https://vimeo.com/158181618" data-autoplay="false">[video image goes here]</a>
```

And initialize them in Javascript like this:

```javascript
document.videoEmbed('a.videoembed');
```

## Demo
  
Run

```
npm run test
```

or 

```
yarn run test
```

## Why?

This could easily have been another jQuery plugin (it would have been smaller for 
sure), but I wanted to experiment with ES6, Babel and Webpack. 

## License

MIT

---
_Source: https://npm.io/package/bootstrap4-videoembed · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
