All Projects → ambit-tsai → es6-proxy-polyfill

ambit-tsai / es6-proxy-polyfill

Licence: Apache-2.0 license
ES6 Proxy polyfill, supports IE8+, Node.js, etc.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to es6-proxy-polyfill

React Anchor Link Smooth Scroll
React component for anchor links using the smooth scroll polyfill.
Stars: ✭ 186 (+279.59%)
Mutual labels:  polyfill
Details Element Polyfill
<details>
Stars: ✭ 221 (+351.02%)
Mutual labels:  polyfill
Webxr Polyfill
Use the WebXR Device API today, providing fallbacks to native WebVR 1.1 and Cardboard
Stars: ✭ 251 (+412.24%)
Mutual labels:  polyfill
Stickyfill
Polyfill for CSS `position: sticky`
Stars: ✭ 2,252 (+4495.92%)
Mutual labels:  polyfill
Xmlhttprequest
XMLHttpRequest.js - Standard-compliant cross-browser XMLHttpRequest object implementation
Stars: ✭ 211 (+330.61%)
Mutual labels:  polyfill
Pagedjs
Display paginated content in the browser and generate print books using web technology
Stars: ✭ 228 (+365.31%)
Mutual labels:  polyfill
Jquery Contextmenu
jQuery contextMenu plugin & polyfill
Stars: ✭ 2,148 (+4283.67%)
Mutual labels:  polyfill
polyfill-useragent-normaliser
No description or website provided.
Stars: ✭ 23 (-53.06%)
Mutual labels:  polyfill
Tickedoff
Tiny library (<200B gzip) for deferring something by a "tick"
Stars: ✭ 213 (+334.69%)
Mutual labels:  polyfill
Poly Flif
📷 A poly-fill for the FLIF image format.
Stars: ✭ 243 (+395.92%)
Mutual labels:  polyfill
Datalist Polyfill
Minimal and dependency-free vanilla JavaScript polyfill for the awesome datalist-functionality
Stars: ✭ 197 (+302.04%)
Mutual labels:  polyfill
Share Api Polyfill
A polyfill for the sharing that can be used in desktop too, so your users can shere in their twitter, facebook, messenger, linkedin, sms, e-mail, print, telegram or whatsapp.
Stars: ✭ 210 (+328.57%)
Mutual labels:  polyfill
React Native Fetch Blob
This project was started in the cause of solving issue facebook/react-native#854, React Native's lacks of Blob implementation which results into problems when transferring binary data.
Stars: ✭ 2,593 (+5191.84%)
Mutual labels:  polyfill
Polyfill Intl Icu
This component provides a collection of functions/classes using the symfony/intl package when the Intl extension is not installed.
Stars: ✭ 2,287 (+4567.35%)
Mutual labels:  polyfill
Pressure
👇💥 JavaScript library for handling Force Touch, 3D Touch, and Pointer Pressure.
Stars: ✭ 2,785 (+5583.67%)
Mutual labels:  polyfill
Rangeslider.js
🎚 HTML5 input range slider element polyfill
Stars: ✭ 2,153 (+4293.88%)
Mutual labels:  polyfill
Core Js
Standard Library
Stars: ✭ 15,854 (+32255.1%)
Mutual labels:  polyfill
create-require
Polyfill for Node.js module.createRequire (<= v12.2.0)
Stars: ✭ 24 (-51.02%)
Mutual labels:  polyfill
Adapter
Shim to insulate apps from spec changes and prefix differences. Latest adapter.js release:
Stars: ✭ 3,002 (+6026.53%)
Mutual labels:  polyfill
Eslint Plugin Compat
Lint the browser compatibility of your code
Stars: ✭ 2,743 (+5497.96%)
Mutual labels:  polyfill

简体中文 | English

ES6 Proxy Polyfill  Version

This is a polyfill for ES6 Proxy, supports IE6+ , Node.js, etc.

So far, it supports more features than the proxy-polyfill of GoogleChrome.

The polyfill supports just a limited number of proxy 'trap':

  • get
  • set
  • apply
  • construct

The Proxy.revocable method is also supported, but only for calls to the above traps.

Installation

npm i -S es6-proxy-polyfill

Usage

  1. Browser:
<!--[if lte IE 8]>
<script src="path/to/object-defineproperty-ie.js" type="text/javascript"></script>
<![endif]-->
<script src="path/to/es6-proxy-polyfill.js" type="text/javascript"></script>
<script type="text/javascript">
    var proxy = new Proxy({}, {});
</script>
  1. Node.js:
const Proxy = require('es6-proxy-polyfill');

let proxy = new Proxy({}, {});

Notice

  1. For non-array object, the properties you want to proxy must be known at creation time;
  2. In IE8 or below, it depends on Object.defineProperties and Object.getOwnPropertyDescriptor provided by library "object-defineproperty-ie";
  3. The support of traps:
Object Function Array
>=IE9 get, set get, set, apply, construct get, set
<=IE8 get, set apply, construct -

Testing

  1. Access test/browser/index.html with browser
  2. Tested in IE6-8, IE11

Contact Us

  1. WeChat: ambit_tsai
  2. QQ Group: 663286147
  3. E-mail: [email protected]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].