Skip to content

Latest commit

 

History

History

polyfill

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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