1.0.0 • Published 3 years ago

mfei v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Synopsis

mfei - the name originated from Micro Front-End solution based on Iframe, but it is actually a cross-domain communication framework based on iframe, such that you can use it anywhere that iframe solutions occur

note: this library has no dependencies except that it relies Promise, you should add polyfill if you need to support old browsers

Install

npm install mfei or yarn add mfei

Usage

see examples

you can clone this repo and change directory to examples and its subdirectories, install dependencies use yarn or npm respectively, you should run npm start in base directory firstly and then run start in apple directory

examples structure

  • base: the main application page that loads apple service use mfei
  • apple: the service page that registers some request handlers, use request origin to authenticate/authorize

if you want to see class or parameters deeply, please refer to type definitions in source code directly thanks to the tiny codebase

License

MIT