@r/frames
A library for interacting with <iframes />
Last updated 10 months ago by fruchtose .
UNLICENSED · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @r/frames 
SYNC missed versions from official npm registry.

r/iframes

A library for interacting with <iframes />.

Change Log

v0.0.0

Initial release

v0.1.1

Transform modules to commonjs

v0.1.5

Library is no built when installed as a dependency. This removes the dependency on Babel packages.

v0.1.6

Fixes a polyfill issue for server environments introduced in v0.1.4.

Installation

yarn add @r/frames -s

Usage example

import * as frames from '@r/frames';

// parent window
frames.listen('dfp');
frames.receiveMessageOnce('init.dfp', () => {
  // do stuff.
});

// iframe
frames.postMessage(window.parent, 'init.dfp', data);

TODO

  1. Add tests
  2. Convert to typescript

Current Tags

  • 0.1.6                                ...           latest (10 months ago)

8 Versions

  • 0.1.6                                ...           10 months ago
  • 0.1.5                                ...           10 months ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 4
Last Month 0
Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |