Neurotic Programmer Masquerade
    Wondering what’s next for npm?Check out our public roadmap! »

    mfei

    1.0.0 • Public • Published

    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

    Install

    npm i mfei

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    none

    Unpacked Size

    68.9 kB

    Total Files

    23

    Last publish

    Collaborators

    • avatar