oembed-replacer
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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 | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2131
24