lebab transpiles your ES5 code to ES2015. It does exactly the opposite of what babel does. If you want to understand what lebab exactly does, try the live demo.
Install it using npm :
$ npm install -g lebabTranspile your old-fashioned code using the lebab cli tool.
lebab es5.js -o es6.js- Function/Prototypes to Classes
- Callback to Arrow functions
- String concatenation to Template Strings
- Using
letandconstinstead ofvar - Default arguments instead of
a = a || 2 - Function properties in objects to Object methods