Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 466 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 466 Bytes

video-embed-parser

A video embed tag parser for bilibili, youku, tudou and youtube.

install

install from npm

npm install --save video-embed-parser

install from yarn

yarn add video-embed-parser

using

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/