mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
251 B
TypeScript
10 lines
251 B
TypeScript
import { extract, hasProvider, OembedData } from "oembed-parser";
|
|
|
|
const url = "https://www.youtube.com/watch?v=8jPQjjsBbIc";
|
|
|
|
extract(url).then(data => {
|
|
const parsedData: OembedData = data;
|
|
});
|
|
|
|
const providerExists: boolean = hasProvider(url);
|