embedable
v1.0.32
Published
Oembed and OpenGraph embeds for content
Downloads
13
Readme
embedable
Embed media via oEmbed or openGraph
Example of using the embedable code to fetch and render a uri
// Require the embedable library
var Embedable = require('embedable');
// Instantiate the embedable object
var embed = Embedable();
// Asynchronously fetch metadata for a URI
var data = embed.fetch('https://www.youtube.com/watch?v=igUMDICqTpQ');
// Asynchronously render html with the metadata
var html = data.then(function(data) {
return embed.render(data);
});