DevOps

Babel – JavaScript compiler – use next generation JavaScript

Babel is a compiler for writing next generation JavaScript. Like many other compilers it runs in 3 stages: parsing, transforming, and printing.

Babel is a tool that helps you write code in the latest version of JavaScript. When your supported environments don’t support certain features natively, Babel will help you compile those features down to a supported version.

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.

Babel tries to stay true to the ECMAScript standard, as much as reasonably possible. It aims to use the least amount of code possible with no dependence on a bulky runtime.

The compiler can:

  • Transform syntax.
  • Polyfill features that are missing in your target environment (through @babel/polyfill).
  • Source code transformations (codemods).
  • Support for the latest version of JavaScript through syntax transformers.
  • Convert JSX syntax.
  • Strip out annotations.
  • Built out of plugins. Compose your own transformation pipeline using existing plugins or write your own.

Website: babeljs.io
Support: Blog, GitHub Code Repository
Developer: Daniel Tschinder, Brian Ng, Logan Smyth, Nicolò Ribaudo, Sven Sauleau, Henry Zhu, and many contributors
License: MIT License

Babel is written in JavaScript. Learn JavaScript with our recommended free books and free tutorials.


Related Software

Compilers
GNU Compiler CollectionThe standard compiler for most Unix-like operating systems
rustcCompiler for the Rust programming language
AOCCAMD Optimizing C/C++ Compiler
LLVMLow-Level Virtual Machine (LLVM) compiler for C/C++
ispcIntel SPMD Program Compiler
BabelJavaScript compiler - use next generation JavaScript
Glasgow Haskell CompilerAn optimizing compiler for Haskell, written in Haskell
ClangC Language Family Frontend for LLVM
NuitkaOptimizing Python compiler
CHICKENCompiler for the Scheme programming language
FreeBASIC32-bit BASIC compiler
NumbaCompiler for Python array and numerical functions
Free PascalAdvanced Pascal compiler for Pascal and Object Pascal
NASMAssembler for the x86 CPU architecture
BiglooPractical Scheme compiler

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments