lebab
Lebab is an open-source tool designed to modernize JavaScript code by automatically transforming older syntax into modern ECMAScript 2015+ features. It achieves this by parsing source files into an abstract syntax tree and applying a series of transformation recipes, such as converting var declarations to let or const and turning traditional function expressions into arrow functions where appropriate. The set of transforms can be configured and combined, allowing selective modernization across a codebase.
The tool provides both a command-line interface and a programmatic API, enabling integration into build pipelines,
Lebab is community-driven and has been used to assist developers in migrating legacy JavaScript to more modern
See also: JavaScript modernization, ES2015, modern JavaScript syntax.