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

Package detail

@braintree/iframer

braintree1.6mMIT2.0.1TypeScript support: included

A utility to consistently create iframes

readme

iframer

A utility to allow consistent iframe creation.

Example

var iframer = require("iframer");

var myIframe = iframer({
  name: "braintree-dropin-iframe",
  style: "z-index: 999",
  width: "100%",
  height: "68",
});

document.body.appendChild(myIframe);

Testing

npm t

changelog

CHANGELOG

2.0.1

  • Update (sub-)dependencies
    • cross-spawn to 7.0.6
    • micromatch to 4.0.8
    • ws to 8.18.0
  • Update braces to 3.0.3

2.0.0

  • Update to node v18

  • Dev Dependency Updates

    • Update to TypeScript 5
    • Update prettier to next major version
    • Update eslint-plugin-prettier to next major version
    • Other minor dependency updates

1.1.0

  • Add typescript types

1.0.3

  • Publish package to npm as scoped package

1.0.2

  • Convert default-attributes.json to .js file so webpack users do not need a JSON parser in their config

1.0.1

  • Add license info

1.0.0

  • Initial release