https://github.com/jie/video-embed-parser
https://github.com/jie/video-embed-parser
bilibili tudou video-embed video-iframe youku youtube
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jie/video-embed-parser
- Owner: jie
- License: mit
- Created: 2017-03-29T07:22:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-31T08:24:30.000Z (over 9 years ago)
- Last Synced: 2026-04-14T09:26:43.387Z (3 months ago)
- Topics: bilibili, tudou, video-embed, video-iframe, youku, youtube
- Language: JavaScript
- Homepage: https://jie.github.io/video-embed-parser/
- Size: 212 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# video-embed-parser
A video embed tag parser for bilibili, youku, tudou and youtube.
## install
install from npm
``` bash
npm install --save video-embed-parser
```
install from yarn
``` bash
yarn add video-embed-parser
```
## using
``` javascript
import { VideoParser } from 'video-embed-parser'
const parser = new VideoParser()
let html = parser.getEmbedTag(this.state.link)
console.log(html)
```
## example
```
https://jie.github.io/video-embed-parser/
```