Skip to content

Embed media via oEmbed or openGraph into article content

License

Notifications You must be signed in to change notification settings

mattmontgomery/embedable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
});

About

Embed media via oEmbed or openGraph into article content

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published