A collection of plugins combined together.
npm i -S embed-js embed-preset-basic
https://unpkg.com/embed-preset-basic
- embed-plugin-highlight
- embed-plugin-emoji
- embed-plugin-github
- embed-plugin-noEmbed
- embed-plugin-url
- embed-plugin-youtube
- embed-plugin-facebook
- embed-plugin-media
- embed-plugin-instagram
Embeds repository data in the website. Supports repo URLs. Usage is simple.
import EmbedJS from 'embed-js'
import basic from 'embed-plugin-basic'
const x = new EmbedJS({
input: document.getElementById('element'),
preset: basic({
gAuthKey: '', // will be automatically passed to all plugins requiring it.
exclude: ['url'], // plugins that you don't want to use.
[pluginId]: {} // pass plugin specific options. Eg: ID for embed-plugin-emoji is emoji. Similar for others.
})
})
Currently only one preset at a time is supported. You can use plugins and preset at the same time though. (not recommended.)
MIT @ Ritesh Kumar