Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sophiebits/es3ify
Browserify transform to convert ES5 syntax to be ES3-compatible.
https://github.com/sophiebits/es3ify
Last synced: about 2 months ago
JSON representation
Browserify transform to convert ES5 syntax to be ES3-compatible.
- Host: GitHub
- URL: https://github.com/sophiebits/es3ify
- Owner: sophiebits
- License: mit
- Created: 2014-02-15T23:24:59.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T09:17:13.000Z (about 4 years ago)
- Last Synced: 2024-10-23T01:59:55.529Z (2 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 113
- Watchers: 4
- Forks: 26
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# es3ify
Browserify transform to convert quote reserved words in property keys for compatibility with ES3 JavaScript engines like IE8. In addition, trailing commas in array and object literals are removed.
```javascript
// In
var x = {class: 2,};
x.class = [3, 4,];// Out:
var x = {"class": 2};
x["class"] = [3, 4];
```Run tests with:
```sh
npm install -g jasmine-node
jasmine-node spec
```