A plugin that can be used to embed selected services supported by NoEmbed.
npm i -S embed-js embed-plugin-noembed
https://unpkg.com/embed-plugin-noembed
- AmCharts
- CollegeHumor
- DailyMotion
- DeviantArt
- DotSub
- Dropbox
- Flickr
- Gfycat
- Giphy
- Hulu
- Imgur
- Kickstarter
- Mixcloud
- NyTimes
- Screen9
- Scribd
- SlideShare
- Smugmug
- SoundCloud
- SpeakerDeck
- Ted
- Twitch
- Ustream
- VeerVR
- Vevo
- Vimeo
- Vine
- Wikimedia
- YouTube
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.
MIT @ Ritesh Kumar