The compiler for writing next generation JavaScript.
Babel (pronounced "babble") is a community-driven project used by many companies and projects, and is maintained by a group of volunteers. If you'd like to help support the future of the project, please consider:
Our top sponsors are shown below! [Become a sponsor]
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.
In
// ES2020 nullish coalescing
function greet(input) {
return input ?? "Hello world";
}
Out
function greet(input) {
return input != null ? input : "Hello world";
}
Try it out at our REPL.
Mostly a handful of volunteers, funded by you! Please check out our team page!
I'm so glad you asked: Hallelujah —— In Praise of Babel by @angus-c, audio version by @swyx. Tweet us your recordings!
For questions and support please join our Slack Community (you can sign up here for an invite), ask a question on Stack Overflow, or ping us on Twitter.
Check out our website: babeljs.io, and report issues/features at babel/website.
Please read through our CONTRIBUTING.md and fill out the issue template at babel/issues!
Check out:
Some resources:
The Babel repo is managed as a monorepo that is composed of many npm packages.
MIT