Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Embed media via oEmbed or openGraph into article content

License

Notifications You must be signed in to change notification settings

deseretdigital/embeddable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 library
var Embeddable = require('ddm-embeddable');

// Instantiate the embedable object
var embed = Embeddable();

// 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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%