mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-29 21:15:28 +02:00
lebab: add page (#1951)
This commit is contained in:
parent
60c61f97ff
commit
8b0dba0596
1 changed files with 24 additions and 0 deletions
24
pages/common/lebab.md
Normal file
24
pages/common/lebab.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# lebab
|
||||
|
||||
> A JavaScript modernizer for transpiling code to ES6/ES7.
|
||||
> Transformations must be provided for all examples.
|
||||
|
||||
- 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}}`
|
Loading…
Add table
Reference in a new issue