Skip to content

Latest commit

 

History

History

embed-preset-basic

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

embed-plugin-noembed

A collection of plugins combined together.

Installation

npm i -S embed-js embed-preset-basic

CDN

https://unpkg.com/embed-preset-basic

Included Plugins

Usage

Edit embed.js - demo

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.)

License

MIT @ Ritesh Kumar