Warning: This is still in development and most of these features are not completely compliant with ES6 yet. I wouldn't recommend using it for production code yet.
- destructuring (including elision and rest)
- fat arrow functions
- rest and default arguments
- spread operator for applying arguments
- possibly limited
- possibly limited module support
$ npm install sweet.js es6-macros
$ sjs -m es6-macros file.js
If you pass
-c to sjs along with
-o output.js, it will generate a
sourcemap so you get good debugging too!
To run the tests: