Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sophiebits/es3ify

Browserify transform to convert ES5 syntax to be ES3-compatible.
https://github.com/sophiebits/es3ify

Last synced: about 2 months ago
JSON representation

Browserify transform to convert ES5 syntax to be ES3-compatible.

Awesome Lists containing this project

README

        

# 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.

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

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

Run tests with:

```sh
npm install -g jasmine-node
jasmine-node spec
```