UNPKG

better-video-embeds

Version:

Pass in a url that should be a video embed link...and get back a properly formated embed link. (Works for YouTube, Vimeo, Wistia and more!)

6 lines (5 loc) 189 B
declare type Params = { includeModestYouTubeBranding: boolean; }; declare const getEmbedUrl: (dirtyUrl: string, params?: Params | undefined) => string; export default getEmbedUrl;