embed-plugin-noembed

5.0.4 • Public • Published

embed-plugin-noembed

A plugin that can be used to embed selected services supported by NoEmbed.

Installation

npm i -S embed-js embed-plugin-noembed

CDN

https://unpkg.com/embed-plugin-noembed

Supported Services

  • AmCharts
  • CollegeHumor
  • DailyMotion
  • DeviantArt
  • DotSub
  • Dropbox
  • Flickr
  • Gfycat
  • Giphy
  • Hulu
  • Imgur
  • Kickstarter
  • Mixcloud
  • NyTimes
  • Reddit
  • Screen9
  • Scribd
  • SlideShare
  • Smugmug
  • SoundCloud
  • SpeakerDeck
  • Ted
  • Twitch
  • Twitter
  • Ustream
  • VeerVR
  • Vevo
  • Vimeo
  • Vine
  • Wikimedia
  • YouTube

Usage

Embeds repository data in the website. Supports repo URLs. Usage is simple.

import EmbedJS from 'embed-js'
import noembed from 'embed-plugin-noembed'
 
const x = new EmbedJS({
  input: document.getElementById('element'),
  plugins: [
  noembed({
    exclude: ['twitter'], // array of service names that you want to exclude. Defaults to an empty array.
 
    twttr: isBrowser ? window.twttr : null, // in case you want to define a custom twitter widget script.
 
    onLoad() {}, // executed when tweets are rendered.
 
    template(args) {
      // optional template
    }
   })
 ]
})

When you click on the link URL, it redirects you to the repo URL.

License

MIT @ Ritesh Kumar

Readme

Keywords

none

Package Sidebar

Install

npm i embed-plugin-noembed

Weekly Downloads

191

Version

5.0.4

License

MIT

Unpacked Size

98.1 kB

Total Files

10

Last publish

Collaborators

  • ritz078