New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

oembed-all

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oembed-all

OEmbed API to display embedded content in website

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
Maintainers
2
Weekly downloads
 
Created
Source

Oembed-all unstable

CommonJS fork of jquery-oembed-all, jquery-less.

$ npm install --save oembed-all
var Oembed = require('oembed-all');

or connect oembed.js and write the same thing to get the function. Then you can call it like that:

<a href="http://www.youtube.com/watch?v=8mwKq7_JlS8" class="embed"></a>

<script>
  var link = document.querySelector('a.embed');
  var oembed = new Oembed(link, options);
</script>

Shortened Urls

This project now handles shortened url's using the JSONP service from http://longurl.org. e.g. http://bit.ly/oP77mm will first lengthen the URL to http://tinychat.com/omginternetparty and then embed as normal. This is experimental - so let me know of problems!

to use...

<a href="https://github.com/starfishmod/jquery-oembed-all" class="oembed">https://github.com/starfishmod/jquery-oembed-all</a>
  1. url
  2. options
new Oembed(link, {
    embedMethod: 'auto',	// "auto", "append", "fill"
    apikeys: {
        amazon : '<your amazon key>',
    }
});

Fallback to Open Graph

If no providers are found, the fallback (opengraph) provider will scrap the intended website using YQL to try to embed information using the OG protocol.

The fallback can be disabled using {fallback:false} setting.

new Oembed(link, {
        fallback : false
    }
});

Current 3rd party sources include:

Video
Audio
Photo
Rich
TODO:

Plus a lot more :) Feel free to submit

NPM

FAQs

Package last updated on 17 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc