Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

create-iframe

sethvincent41MIT1.0.1

programmatically create an iframe that can execute javascript

iframe, wzrd, browserify-cdn, sandbox

readme

create-iframe

Programmatically create an iframe that can execute javascript

npm travis standard conduct

About

Easily create an iframe with arbitrary javascript.

Extracted from browser-module-sandbox

Install

npm install --save create-iframe

Usage

var createIframe = require('create-iframe')

var code = 'console.log(\'hello\')'
var iframe = createIframe(code, { container: document.body })

Examples

Contributing

Contributions are welcome! Please read the contributing guidelines first.

Conduct

It is important that this project contributes to a friendly, safe, and welcoming environment for all. Read this project's code of conduct

Changelog

Read about the changes to this project in CHANGELOG.md. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Contact

License

MIT

changelog

create-iframe change log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

1.0.1

Added

  • change log!
  • code of conduct
  • contributing guidelines
  • basic example

Changed

  • improved docs

1.0.0

Added

  • initial implementation