Babel Installation On A Debian, Ubuntu, Arch, Kali, Fedora And Raspbian

Babel Installation On A Debian, Ubuntu, Arch, Kali, Fedora And Raspbian

babel

A transpiler which converts code from JavaScript ES6/ES7 syntax to ES5 syntax.

Maintainer: Debichem Team



Section: science

Install babel

  • Debian apt-get install openbabel Click to copy
  • Ubuntu apt-get install openbabel Click to copy
  • Arch Linux pacman -S openbabel Click to copy
  • Kali Linux apt-get install openbabel Click to copy
  • Fedora dnf install openbabel Click to copy
  • Raspbian apt-get install openbabel Click to copy

A transpiler which converts code from JavaScript ES6/ES7 syntax to ES5 syntax.

How to use babel?

Below are few example commands for babel that you can use in the terminal.

Transpile a specified input file and output to stdout:
babel path/to/fileClick to copy
Transpile a specified input file and output to a specific file:
babel path/to/input_file --out-file path/to/output_fileClick to copy
Transpile the input file every time it is changed:
babel path/to/input_file --watchClick to copy
Transpile a whole directory of files:
babel path/to/input_directoryClick to copy
Ignore specified comma-separated files in a directory:
babel path/to/input_directory --ignore ignored_filesClick to copy
Transpile and output as minified JavaScript:
babel path/to/input_file --minifiedClick to copy
Choose a set of presets for output formatting:
babel path/to/input_file --presets presetsClick to copy
Output all available options:
babel --helpClick to copy
Installing babel command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Arch, Kali, Fedora and Raspbian operating systems. Once you run the command it will install the latest version of babel 2026 package in your OS.