# gardr-plugin-ext-resize

> Gardr plugin for resizing content of an iframe

Latest version **0.3.0** (published 2014-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install gardr-plugin-ext-resize
pnpm add gardr-plugin-ext-resize
yarn add gardr-plugin-ext-resize
bun add gardr-plugin-ext-resize
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2014-11-10 |
| First published | 2014-10-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Krystian Jarmicki |
| Maintainers | kjarmicki |
| Keywords | gardr, gardr-plugin, resize |

## Links

- npm: https://www.npmjs.com/package/gardr-plugin-ext-resize
- Repository: https://github.com/Schibsted-Tech-Polska/gardr-plugin-ext-resize
- Issues: https://github.com/Schibsted-Tech-Polska/gardr-plugin-ext-resize/issues
- npm.io page: https://npm.io/package/gardr-plugin-ext-resize

## Dependencies (1)

- [gardr-core-plugin](https://npm.io/package/gardr-core-plugin.md) 0.0.1

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2014-11-10
- 0.2.0 — 2014-11-07
- 0.1.0 — 2014-10-28

## README

# Gardr Resize Plugin (Ext)

Gardr plugin to resize contents of an iframe (images, flash objects, other iframes) if they're exceeding iframe's size.

Requires [options plugin](https://github.com/Schibsted-Tech-Polska/gardr-plugin-host-options) bundled in host.

## Install

```
npm install gardr-plugin-ext-resize --save
```

## Bundle

In your ext bundle file:
```javascript
    var gardrExt = require('gardr-ext');
    var resize = require('gardr-plugin-ext-resize');

    gardrExt.plugin(resize);

    module.exports = gardrExt;
```

## Options (host)

```resizeInnerHorizontal``` - boolean, enables horizontal resizing of iframe content

```resizeInnerVertical``` - boolean, enables horizontal resizing of iframe content

```resizeInnerCheckDelay``` - number, amount of miliseconds after which resizing will be performed (default: instant)

## Example

```javascript
var gardr = gardrHost(...);
gardr.queue('ad', {
    resizeInnerHorizontal: true,
    resizeInnerVertical: true,
    ...
});
```

---
_Source: https://npm.io/package/gardr-plugin-ext-resize · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
