Eric Foster 35b96bc934 initial commit 6 vuotta sitten
..
spec initial commit 6 vuotta sitten
.npmignore initial commit 6 vuotta sitten
.travis.yml initial commit 6 vuotta sitten
LICENSE initial commit 6 vuotta sitten
README.md initial commit 6 vuotta sitten
index.js initial commit 6 vuotta sitten
package.json initial commit 6 vuotta sitten

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