# skeets.iframe-dom

> append / prepend / replace an iFrame with content into the DOM.

Latest version **1.0.5** (published 2023-10-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install skeets.iframe-dom
pnpm add skeets.iframe-dom
yarn add skeets.iframe-dom
bun add skeets.iframe-dom
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-10-30 |
| First published | 2023-10-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Skeets |
| Maintainers | skeets |
| Keywords | iFrame |

## Links

- npm: https://www.npmjs.com/package/skeets.iframe-dom
- npm.io page: https://npm.io/package/skeets.iframe-dom

## Recent versions

- 1.0.5 (latest) — 2023-10-30
- 1.0.4 — 2023-10-30
- 1.0.3 — 2023-10-30
- 1.0.2 — 2023-10-30
- 1.0.1 — 2023-10-30
- 1.0.0 — 2023-10-30

## README

# skeets.iframe-resize

> append / prepend / replace an iFrame with content into the DOM.

## Install

```bash
npm install skeets.iframe-dom
```

(requires jQuery)

## Usage

```javascript
if (typeof iFrameDom === "undefined" || typeof iFrameDom.append !== "function") {
  console.log("iFrameDom function not found. Install 'skeets.iframe-dom' through npm.");
}
else {
  iFrameDom.append($targetElement, content, options);
}
```

methods allowed: `prepend`, `replace`, `append`, `include`

### Options

| Name               | Function                                                                      |
|--------------------|-------------------------------------------------------------------------------|
| style              | Apply custom styles to the iFrame (accepts object with CSS property => value) |
| viewOriginalOption | Provide button that, when pressed, removes custom styles (true / false)       |
| resizeOptions      | Options passed to iFrameResize (see skeets.iframe-resize)                     |

## License

[ISC](https://opensource.org/licenses/ISC)

---
_Source: https://npm.io/package/skeets.iframe-dom · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
