Turn your ES5 code into readable ES6. It does the opposite of what Babel does.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 691 commits behind lebab:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
src
test/transformation
.editorconfig
.gitignore
.jshintrc
.npmignore
.travis.yml
Gruntfile.js
LICENSE
README.md
index.js
package.json

README.md

Build Status License JS.ORG

Lebab

Lebab

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.

Usage

Install it using npm :

$ npm install -g lebab

Transpile your old-fashioned code using the lebab cli tool.

lebab es5.js -o es6.js

Supported Features

  • Function/Prototypes to Classes
  • Callback to Arrow functions
  • String concatenation to Template Strings
  • Using let and const instead of var
  • Default arguments instead of a = a || 2
  • Function properties in objects to Object methods