Socket
Socket
Sign inDemoInstall

openharmony-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openharmony-polyfill

English | [简体中文](./README-zh.md) # OpenHarmony Polyfill This project is a polyfill that implements a subset of the standard web interface for OpenHarmony, currently includes the following APIs: * XMLHttpRequest * fetch * WebSocket * Web Storage * TextDeco


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

English | 简体中文

OpenHarmony Polyfill

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

  • XMLHttpRequest
  • fetch
  • WebSocket
  • Web Storage
  • TextDecoder
  • TextEncoder
  • URL API
  • Web Workers

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 the 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

FAQs

Package last updated on 22 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc