Browserify transform to convert ES5 syntax to be ES3-compatible.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
spec Add reserverd word (#14) Aug 29, 2017
.gitignore Initial version Feb 15, 2014
.travis.yml upgrade jstransform (#11) Apr 29, 2016
LICENSE Initial version Feb 15, 2014
README.md Add tests for transform Feb 16, 2014
index.js Add reserverd word (#14) Aug 29, 2017
package.json 0.2.2 Apr 29, 2016

README.md

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.

// In
var x = {class: 2,};
x.class = [3, 4,];

// Out:
var x = {"class": 2};
x["class"] = [3, 4];

Run tests with:

npm install -g jasmine-node
jasmine-node spec