openharmony-polyfill
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

English | 简体中文

OpenHarmony Polyfill

This project is a polyfill that implements a subset of the standard web interface for OpenHarmony, currently includes the following Web APIs:

Node.js API includes:

Icon Description
support
⚠️ partial support
not support now

How to use?

  1. Run the following command to install in the OpenHarmony application project directory
npm install openharmony-polyfill --save
  1. Add import in the js entry file
import'openharmony-polyfill'
  1. Now you can use the standard Web API interface in your source code, such as XMLHttpRequest, or you can use third-party libraries that call the standard Web API, such as axios
  2. For detailed usage, please refer to the examples in examples

Tested Compatible Libraries

/openharmony-polyfill/

    Package Sidebar

    Install

    npm i openharmony-polyfill

    Weekly Downloads

    1

    Version

    0.7.0

    License

    MulanPSL-2.0

    Unpacked Size

    98.8 kB

    Total Files

    21

    Last publish

    Collaborators

    • flyfishzy