From 8b0dba0596b0596883b888f2f97850c344d4db02 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Wed, 14 Feb 2018 15:26:01 +0000 Subject: [PATCH] lebab: add page (#1951) --- pages/common/lebab.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/lebab.md diff --git a/pages/common/lebab.md b/pages/common/lebab.md new file mode 100644 index 0000000000..63d859b46a --- /dev/null +++ b/pages/common/lebab.md @@ -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}}`