Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
rubber-band
Advanced tools
Unapologetically evergreen-only supporting iframe resizer
Install via npm npm install --save rubber-band
In your host document
// content.js
import {content} from 'rubber-band';
content();
// host.js
import {host} from 'rubber-band';
let els = document.querySelectorAll('.js-rubberband');
let frames = Array.prototype.slice.call(els).map(host);
<body>
<!-- host.html -->
<iframe src="./content.html" class="js-rubberband">
<script src="rubberband/distribution/rubber-band.host.min.js" async="async"></script>
</body>
<body>
<!-- content.html -->
<script src="rubberband/distribution/rubber-band.content.min.js" async="async"></script>
</body>
rubberband.host(frame /* frame element */, options /* options object */);
{
"name": "rubberband", // Name used for signaling between frames
"domain": "*", // Domain parameter passed to window.postMessage
"throttle": 300 // Throttle interval used to send messages in milliseconds
"callback": function defaultCallback(frame, height) {
// Called whenever receiving a message from iframe
// Called with params
// * height (integer): Height to apply to iframe
// * frame (HTMLElement): iframe to apply the height to
frame.style.height = `${height}px`;
}
}
{
start(), // Start frame resizing
stop(), // Stop frame resizing
request() // Send a request for content height measurement to the containing iframe
}
rubberband.content(options /* options object */);
{
"name": "rubberband", // Name used for signaling between frames
"domain": "*", // Domain parameter passed to window.postMessage
"throttle": 300 // Throttle interval used to send messages in milliseconds
}
{
start(), // Start frame resizing
stop(), // Stop frame resizing
}
FAQs
Unapologetically evergreen-only supporting iframe resizer
The npm package rubber-band receives a total of 1 weekly downloads. As such, rubber-band popularity was classified as not popular.
We found that rubber-band demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.