1.3.1 • Published 6 years ago

ddm-embeddable v1.3.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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

6 years ago

1.3.0

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.21

7 years ago