iframify

0.1.2 • Public • Published

iframify

Wraps the given HTML code in an iframe that resizes dynamically to fit its contents.

Useful for displaying embeds that use <script> tags without exposing your page to foreign code.

Usage:

var iframe = iframify('<h1>Hello, World</h1>');
document.body.appendChild(iframe);

Readme

Keywords

none

Package Sidebar

Install

npm i iframify

Weekly Downloads

2

Version

0.1.2

License

none

Last publish

Collaborators

  • coreh