embeddable
Embed media via oEmbed or openGraph
Install
npm install ddm-embeddable
Example of using the embedable code to fetch and render a uri
// Require the embedable libraryvar Embeddable = ; // Instantiate the embedable objectvar embed = ; // Asynchronously fetch metadata for a URIvar data = embed; // Asynchronously render html with the metadatavar html = data;