New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

clifton

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clifton

Easy-to-use messaging between iframes and their parent

latest
npmnpm
Version
0.4.8
Version published
Maintainers
0
Created
Source

📬 Clifton

Pat Clifton

Never miss a delivery between your iframes again! Clifton is your friendly neighborhood postman, ensuring your messages arrive safe and sound, no matter the weather.

Install

📦 Get on the road by installing clifton:

npm install clifton

Usage

🚚 Create a Bus on all your pages:

import { Bus } from 'clifton'

const bus = new Bus('letters')

📨 Then start delivering messages:

parent.htmliframe.html
bus.deliver('letter', { to: 'Jess' })

bus.receive('reply', msg => {})
bus.receive('letter', msg => {
  bus.deliver('reply', { text: 'Meow' })
})

Keywords

iframe

FAQs

Package last updated on 25 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts