lebab
converts JavaScript code from ES5 to ES6/ES2015+
TLDR
Convert ES5 to ES6
$ lebab [input.js] -o [output.js]
Apply specific transforms$ lebab [input.js] -o [output.js] --transform arrow,let
Convert in place$ lebab --replace [file.js] --transform arrow
List available transforms$ lebab --help
SYNOPSIS
lebab [options] file
DESCRIPTION
lebab converts JavaScript code from ES5 to ES6/ES2015+. Automatically applies transformations like arrow functions, let/const, template strings, and destructuring. The reverse of Babel - modernizes legacy JavaScript code.
PARAMETERS
-o, --out-file file
Output file path.-t, --transform transforms
Comma-separated list of transforms.--replace
Modify files in place.
