2018-02-14 15:26:01 +00:00
|
|
|
# lebab
|
|
|
|
|
|
|
|
> A JavaScript modernizer for transpiling code to ES6/ES7.
|
|
|
|
> Transformations must be provided for all examples.
|
2019-06-05 08:55:52 +01:00
|
|
|
> More information: <https://github.com/lebab/lebab>.
|
2018-02-14 15:26:01 +00:00
|
|
|
|
|
|
|
- Transpile using one or more comma-separated transformations:
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`lebab --transform {{transformation1,transformation2,...}}`
|
2018-02-14 15:26:01 +00:00
|
|
|
|
2022-12-04 07:53:34 +00:00
|
|
|
- Transpile a file to `stdout`:
|
2018-02-14 15:26:01 +00:00
|
|
|
|
|
|
|
`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}}`
|
2024-01-30 04:55:24 +00:00
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`lebab --help`
|