Skip to content

ternobo/embed-video-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embed Parser

Create embed iframe url from aparat, youtube and vimeo video

How to use

npm i embed-video-parser
import embedParser from "embed-video-parser";

console.log(embedParser.parse("https://www.youtube.com/watch?v=r9HdJ8P6GQI"));

Output

{
    "id":"r9HdJ8P6GQI",
    "name":"youtube",
    "embed":"https://www.youtube.com/embed/r9HdJ8P6GQI"
}