iframe-adjuster 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE.md +13 -0
  2. package/README.md +8 -4
  3. package/package.json +2 -1
package/LICENSE.md ADDED
@@ -0,0 +1,13 @@
1
+ DO WHAT THE F**K YOU WANT TO PUBLIC LICENSE
2
+ Version 2, December 2004
3
+
4
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
5
+
6
+ Everyone is permitted to copy and distribute verbatim or modified
7
+ copies of this license document, and changing it is allowed as long
8
+ as the name is changed.
9
+
10
+ DO WHAT THE F**K YOU WANT TO PUBLIC LICENSE
11
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12
+
13
+ 0. You just DO WHAT THE F**K YOU WANT TO.
package/README.md CHANGED
@@ -9,15 +9,19 @@ This plugin will ALWAYS be free and open-source. It can be used for commercial p
9
9
  <br><br>
10
10
 
11
11
  ## How to use:
12
- **NPM package coming soon**
13
12
 
14
13
  1. Add iFrame Adjuster to both the page and the iframe:
15
14
 
16
- **Import from NPM**:
15
+ **Install the npm package**:
16
+ `npm install iframe-adjuster`<br><br>
17
+
18
+ **Import the script from node_modules**:
17
19
  `import 'iframe-adjuster';` <br><br>
18
20
 
19
- **or load it from the CDN:**<br>
20
- ```<script type="text/javascript" src="{{://cdn-tbd}}/dist/iframe-adjuster.min.js"></script>```
21
+ **If you're not using npm, you can simply load it from the CDN:**<br>
22
+ ```html
23
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/iframe-adjuster/dist/iframe-adjuster.min.js"></script>
24
+ ```
21
25
  <br><br>
22
26
 
23
27
  2. Call `iFrameAdjuster()` on the page once, anytime after the Document is ready.
package/package.json CHANGED
@@ -1,5 +1,7 @@
1
1
  {
2
2
  "name": "iframe-adjuster",
3
+ "version": "0.0.3",
4
+ "license": "WTFPL",
3
5
  "description": "Adjusts the height of iFrame elements when the contained content changes size",
4
6
  "keywords": [
5
7
  "iframe",
@@ -8,7 +10,6 @@
8
10
  "helper",
9
11
  "fix"
10
12
  ],
11
- "version": "0.0.2",
12
13
  "type": "module",
13
14
  "scripts": {
14
15
  "dev": "vite",