Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oembed-replacer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oembed-replacer

Module taht replaces oembed tags with iframes

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Oembed replacer

This module replaces oembed tags with iframe elements

Instructions:

  1. install with npm npm install oembed-replacer

  2. import module import OembedReplacer from "oembed-replacer/oembedReplacer"

  3. create instance

new OembedReplacer(options)

options : {
   width: <string> -- defines elements width,
   height: <string> -- defines elements height,
   ids: <array> -- if provided elements with ids will be replaced
   cssClass: <string> -- if provided elements with class will be replaced
   sourceAttribute: <string> -- if provided source of media will be searched in attribute of element,
                                 else innerHTML is used to provide source
}

FAQs

Package last updated on 07 Aug 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc