UNPKG

@ticatec/iframe-message-bridge

Version:

A lightweight TypeScript library for reliable communication between parent window and multiple iframes using postMessage, supporting one-way messages, request-response patterns, broadcast messaging, timeout handling, and automatic resource cleanup.

74 lines (73 loc) 1.82 kB
{ "name": "@ticatec/iframe-message-bridge", "version": "0.1.1", "description": "A lightweight TypeScript library for reliable communication between parent window and multiple iframes using postMessage, supporting one-way messages, request-response patterns, broadcast messaging, timeout handling, and automatic resource cleanup.", "main": "dist/index.js", "types": "dist/index.d.ts", "module": "dist/index.js", "files": [ "dist/**/*", "README.md", "README_CN.md", "LICENSE" ], "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.js" } }, "scripts": { "clean": "rm -rf ./dist", "build": "npm run clean && tsc", "dev": "tsc --watch", "typecheck": "tsc --noEmit", "prepublishOnly": "npm run build", "publish:public": "npm publish --access public", "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ "iframe", "postMessage", "messaging", "communication", "parent", "bridge", "typescript", "browser", "window", "cross-origin", "broadcast", "request-response", "timeout", "memory-management", "cleanup" ], "repository": { "type": "https", "url": "git+https://github.com/ticatec/iframe-message-bridge.git" }, "bugs": { "url": "https://github.com/ticatec/iframe-message-bridge/issues" }, "homepage": "https://github.com/ticatec/iframe-message-bridge#readme", "author": { "name": "Henry Feng", "email": "huili.f@gmail.com" }, "license": "MIT", "engines": { "node": ">=14.0.0" }, "browserslist": [ "last 2 versions", "> 1%", "not dead" ], "devDependencies": { "typescript": "^5.0.0" }, "peerDependencies": {}, "dependencies": {} }