0.7.0 • Published 2 years ago

openharmony-polyfill v0.7.0

Weekly downloads
-
License
MulanPSL-2.0
Repository
github
Last release
2 years ago

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:

IconDescription
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