Gathering detailed insights and metrics for iframe-resizer
Gathering detailed insights and metrics for iframe-resizer
Gathering detailed insights and metrics for iframe-resizer
Gathering detailed insights and metrics for iframe-resizer
@types/iframe-resizer
TypeScript definitions for iframe-resizer
iframe-resizer-react
This package have been moved to @iframe-resizer/react
react-iframe-resizer-super
React Iframe Resizer With Super-Powers (cross domain, resize, etc)
@open-iframe-resizer/core
Open-source modern iframe resizer
Keep iFrames sized to their content.
npm install iframe-resizer
98.6
Supply Chain
71.9
Quality
89.2
Maintenance
100
Vulnerability
79.3
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
6,700 Stars
2,211 Commits
982 Forks
144 Watching
12 Branches
99 Contributors
Updated on 28 Nov 2024
Minified
Minified + Gzipped
JavaScript (62.22%)
HTML (33.74%)
TypeScript (1.74%)
Vue (1.32%)
CSS (0.49%)
Shell (0.48%)
Cumulative downloads
Total Downloads
Last day
-3%
86,409
Compared to previous day
Last week
1%
448,352
Compared to previous week
Last month
12.8%
1,899,529
Compared to previous month
Last year
33.2%
21,405,248
Compared to previous year
The iframe-resizer library aims to take away the pain points with using iframes. It will resize your iframe to match the size of your content and then monitor the iframe to ensure that it is always the perfect size.
As browsers don't provide a single consistently reliable method to calculate content size, iframe-resizer automatically inspects your page and selects the best value for your content every time it detects something changed.
To ensure minimal impact on your site, iframe-resizer is highly optimised and utilizes Set Theory to ensure it only checks the page elements that effect the sizing of your iframes.
Even on the most complex pages, iframe-resizer can detect changes to both HTML and CSS, calculate the revised content dimensions and update the iframe in sub millisecond time.
Supports both internal (same-domain) and external (cross-domain) iframes via a simple JS file that is designed to be a zero impact guest on the sites hosting it.
Additionally iframe-resizer provides a range of missing browser API features, that allows you to securely integrate your iframe content with the parent page.
onMouseEnter
and onMouseLeave
events to the iframe elementWhen combined with viewer.js it can even resize iframes containing PDF and ODF documents.
Please see the iframe-resizer website for setup guides and API documentation. This includes versions for:
Along with setup guides for:
Their is also an API to support the creation of additional custom components.
This version of iframe-resizer has been extensively rewritten to use modern browser APIs, this has enabled significantly better performance and greater accuracy in the detection of content resizing events.
With this release, the opportunity has been taken to refresh and simplify the API, if you are coming from a previous version then their is an Upgrade Guide to explain the changes.
For version 5 iframe-resizer is split into two main packages to make it simpler to deploy across different domains and better support tree shaking. These two packages can be installed from NPM, or downloaded as a zip file.
The parent page package sets up an iframe for automatic content resizing. Their are versions of this package for several popular libraries and frameworks (see below).
This package needs loading into the iframe, where it will quietly wait for a message from the parent page before initialising. It is designed to be a good guest on someone else site.
In addition to the two main packages, their are versions of the parent package for the following platforms.
A React component for the parent page.
A Vue component for the parent page.
A simple jQuery wrapper for the parent page.
The core API for the parent page, used by @iframe-resizer/parent
, plus the framework and library component versions.
Copyright © 2013-24 David J. Bradshaw - Licensed under the GPL V3
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
30 commit(s) and 11 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 9
Details
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
Found 1/22 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
50 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More