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 - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "oembed-replacer",
"version": "1.0.1",
"version": "1.0.2",
"description": "Module taht replaces oembed tags with iframes",

@@ -5,0 +5,0 @@ "main": "index.js",

# Oembed replacer
This module replaces oembed tags with iframe elements
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
class: <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
}
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