Natively Pronounced Mandarin

    create-iframe

    1.0.1 • Public • Published

    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

    Install

    npm i create-iframe

    DownloadsWeekly Downloads

    9

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • sethvincent