On this page you find all important commands for the CLI tool babel. If the
command you are looking for is missing please ask our AI.
babel
Babel is a toolchain that is mainly used to convert ECMAScript 2015+ code into a backwards compatible version of JavaScript in current and older browsers or environments. Here are the main things Babel can do for you:
List of commands for babel:
-
babel:help Output all available babel options.$ babel --helptry on your machineexplain this command
-
babel:tldr:19b3f babel: Transpile a specified input file and output to a specific file.$ babel ${path-to-input_file} --out-file ${path-to-output_file}try on your machineexplain this command
-
babel:tldr:3cec1 babel: Choose a set of presets for output formatting.$ babel ${path-to-input_file} --presets ${presets}try on your machineexplain this command
-
babel:tldr:59ed2 babel: Transpile and output as minified JavaScript.$ babel ${path-to-input_file} --minifiedtry on your machineexplain this command
-
babel:tldr:83740 babel: Transpile the input file every time it is changed.$ babel ${path-to-input_file} --watchtry on your machineexplain this command
-
babel:tldr:b012b babel: Ignore specified comma-separated files in a directory.$ babel ${path-to-input_directory} --ignore ${ignored_files}try on your machineexplain this command
-
babel:transpile babel: Transpile a specified input file and output to `stdout`.$ babel ${filename}try on your machineexplain this command