Eric Foster 35b96bc934 initial commit il y a 6 ans
..
spec initial commit il y a 6 ans
.npmignore initial commit il y a 6 ans
.travis.yml initial commit il y a 6 ans
LICENSE initial commit il y a 6 ans
README.md initial commit il y a 6 ans
index.js initial commit il y a 6 ans
package.json initial commit il y a 6 ans

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