lebab
A JavaScript modernizer for transpiling code to ES6/ES7. Transformations must be provided for all examples. More information: https://github.com/lebab/lebab.
-
Display a list of the available transformations:
lebab --help
-
Transpile using one or more comma-separated transformations:
lebab --transform {{transformation}}
-
Transpile a file to
stdout
:
lebab {{path/to/input_file}}
-
Transpile a file to the specified output file:
lebab {{path/to/input_file}} --out-file {{path/to/output_file}}
-
Replace all
.js
files in-place in the specified directory, glob or file:
lebab --replace {{directory|glob|file}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.