A JavaScript modernizer for transpiling code to ES6/ES7. It does the opposite of what Babel does. Transformations must be provided for all examples.
# To display a list of the available transformations:
lebab --help
# To transpile using one or more comma-separated transformations:
lebab --transform <transformation>
# To transpile a file to stdout:
lebab <path/to/input_file>
# To transpile a file to the specified output file:
lebab <path/to/input_file> --out-file <path/to/output_file>
# To replace all .js files in-place in the specified directory, glob or file:
lebab --replace <directory|glob|file>