Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

embed-plugin-instagram

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embed-plugin-instagram

An embed-js plugin to embed instagram posts.

latest
Source
npmnpm
Version
5.0.4
Version published
Weekly downloads
571
-4.36%
Maintainers
1
Weekly downloads
 
Created
Source

embed-plugin-instagram

A plugin that can be used to embed instagram posts.

Installation

npm i -S embed-js embed-plugin-instagram

CDN

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

Usage

import EmbedJS from 'embed-js'
import instagram from 'embed-plugin-instagram'

const x = new EmbedJS({
  input: document.getElementById('element'),
  plugins: [
  instagram({
    regex: /instagramPostRegex/gi, // in case you want to define a custom regex
    template(args) {
      // optional template
    }
   })
 ]
})

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

License

MIT @ Ritesh Kumar

FAQs

Package last updated on 17 Jun 2019

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