1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/lebab.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

25 lines
648 B
Markdown

# 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}}`