Files
tldr/pages/common/lebab.md
Vitor Henrique 46a054215a pages*: make help and version commands comply with the style guide (#12107)
* pages*: use generic word for help

* git: add newline to the end

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* pages*: make help and version commands comply with the style guide

* java: fix Java name

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-30 12:55:24 +08:00

615 B

lebab

A JavaScript modernizer for transpiling code to ES6/ES7. Transformations must be provided for all examples. More information: https://github.com/lebab/lebab.

  • 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}}

  • Display help:

lebab --help