xtf e538decb69 药品分类 11 mēneši atpakaļ
..
spec e538decb69 药品分类 11 mēneši atpakaļ
.npmignore e538decb69 药品分类 11 mēneši atpakaļ
.travis.yml e538decb69 药品分类 11 mēneši atpakaļ
LICENSE e538decb69 药品分类 11 mēneši atpakaļ
README.md e538decb69 药品分类 11 mēneši atpakaļ
index.js e538decb69 药品分类 11 mēneši atpakaļ
package.json e538decb69 药品分类 11 mēneši atpakaļ

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