xiezhiming bcc6bf9d94 修改 1 年之前
..
spec bcc6bf9d94 修改 1 年之前
.npmignore bcc6bf9d94 修改 1 年之前
.travis.yml bcc6bf9d94 修改 1 年之前
LICENSE bcc6bf9d94 修改 1 年之前
README.md bcc6bf9d94 修改 1 年之前
index.js bcc6bf9d94 修改 1 年之前
package.json bcc6bf9d94 修改 1 年之前

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