awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
lebab avatar

lebab/lebab

0
View on GitHub↗
lebab.github.io↗

Lebab

Lebab is a JavaScript code modernization tool that converts older ES5 syntax into contemporary ES6 equivalents. It operates as a source-to-source transpiler, parsing code into an abstract syntax tree, applying structural transformations, and regenerating the output without intermediate representations or runtime dependencies.

The tool distinguishes itself through a rule-driven pipeline of independent transformation rules, each targeting a specific ES6 feature like arrow functions, let/const, classes, or modules. It provides a programmatic API that accepts source code and an array of transform names for flexible, composable modernization, and integrates with code editors through dedicated plugins that invoke the core library via a common interface. Transformations are categorized into safe transforms with strict, predictable rules for high-confidence changes, and unsafe transforms that use heuristics and pattern matching to determine when conversions preserve program semantics.

Lebab covers the full scope of JavaScript syntax modernization, including updating variable declarations, template literals, destructuring, and module systems. Its capabilities span batch processing through a configurable transformation pipeline and interactive refactoring within editor environments.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • Full Syntax Migration - Converts legacy ES5 JavaScript code into modern ES6 syntax using automated transformations for arrow functions, classes, and modules.
  • Code Transformation APIs - Provides a function-based API accepting source code and an array of transform names for composable modernization.
  • JavaScript AST Transformations - Parses JavaScript into an AST and applies structural modifications to modernize syntax.
  • Programmatic JavaScript Converters - Offers a programming API to apply syntax transforms by calling a function with source code and transform names.
  • ES5-to-ES6 Transpilers - Transforms old JavaScript code into modern ES6 syntax using configurable rules, the opposite of Babel.
  • Modern Syntax - Updates older JavaScript codebases to use contemporary ES6/ES7 features like let/const, template literals, and destructuring.
  • Source-To-Source Transpilers - Converts ES5 source code directly into ES6 source code without intermediate representations or runtime dependencies.
  • Configurable Transform Pipelines - Applies a sequence of independent transformation rules, each targeting a specific ES6 feature, in a configurable order.
  • JavaScript Syntax Modernizers - Converts ES5 patterns like var and functions into ES6 equivalents such as let, const, arrow functions, and classes.
  • Syntax Transformers - Applies safe and unsafe code transforms to upgrade JavaScript syntax while preserving runtime behavior.
  • Semantic Equivalence Heuristics - Uses heuristics to verify that unsafe transforms like let/const conversion preserve program semantics.
  • Editor Integration Plugins - Integrates with code editors through dedicated plugins that run syntax transformations directly on source files.
  • Code Transformation Editor Plugins - Ships editor-specific plugins that invoke the core transformation library via a common interface.
  • Code Migration Editor Plugins - Integrates with code editors to run syntax transformations directly on source files during development.
  • Editor-Integrated Refactoring Tools - Runs syntax modernization transforms directly within code editors through dedicated plugins for interactive development.
  • Safe Code Transformations - Applies strict, predictable rules to transform arrow functions and for-of loops with high confidence.
  • Unsafe Code Transformations - Transforms code using heuristics for let/const, classes, and modules, with caution for potential equivalence issues.
  • Build Tools - Tool for transpiling ES5 code to modern ES6 syntax.
  • Open-source projects made by Iranian developers - Listed in the “Open-source projects made by Iranian developers” section of the Github Do Not Ban Us awesome list.
5,633 stars·151 forks·JavaScript·MIT·18 views

Star history

Star history chart for lebab/lebabStar history chart for lebab/lebab

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Frequently asked questions

What does lebab/lebab do?

Lebab is a JavaScript code modernization tool that converts older ES5 syntax into contemporary ES6 equivalents. It operates as a source-to-source transpiler, parsing code into an abstract syntax tree, applying structural transformations, and regenerating the output without intermediate representations or runtime dependencies.

What are the main features of lebab/lebab?

The main features of lebab/lebab are: Full Syntax Migration, Code Transformation APIs, JavaScript AST Transformations, Programmatic JavaScript Converters, ES5-to-ES6 Transpilers, Modern Syntax, Source-To-Source Transpilers, Configurable Transform Pipelines.

Which projects share features with lebab/lebab?

Projects with overlapping indexed features include: terser/terser — Terser is a JavaScript minifier and compressor designed to reduce file size through whitespace removal, symbol… rollup/plugins — This is a collection of official extensions for the Rollup bundling process. These plugins serve as module… babel/babel — Babel is a pluggable JavaScript compiler and transpiler that converts modern ECMAScript syntax into… swc-project/swc — This project is a high-performance compiler written in Rust that transpiles TypeScript and ECMAScript into compatible… rollup/rollup — Rollup is an ES module bundler and JavaScript module transpiler. It functions as a build tool that combines JavaScript… typestrong/ts-node — ts-node is a TypeScript execution engine and just-in-time transpiler for Node.js. It enables the direct execution of…

Projects sharing features with Lebab

These projects share indexed features with Lebab. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • rollup/pluginsrollup avatar

    rollup/plugins

    3,750View on GitHub↗

    This is a collection of official extensions for the Rollup bundling process. These plugins serve as module transformers, resolution managers, and bundle optimizers designed to modify how JavaScript modules are processed, resolved, and optimized. The suite provides specialized capabilities for modern web transpilation, converting TypeScript, JSX, Flow, and GraphQL into compatible JavaScript. It distinguishes itself through extensive non-JavaScript asset integration, allowing the import of JSON, YAML, CSV, and image files as JavaScript modules or data URIs, and providing support for bundling We

    JavaScriptpluginsrolluprollup-plugins
    View on GitHub↗3,750
  • terser/terserterser avatar

    terser/terser

    9,299View on GitHub↗

    Terser is a JavaScript minifier and compressor designed to reduce file size through whitespace removal, symbol mangling, and logic optimization for ES6+. It functions as a toolkit for minification, a code mangler for shortening variable and property names, and a dead code eliminator that evaluates constant expressions to remove unreachable logic. The project operates as an AST toolkit that parses JavaScript source into SpiderMonkey AST format for structural analysis. It generates source maps to link compressed production code back to the original source, ensuring that minified bundles remain

    JavaScript
    View on GitHub↗9,299
  • babel/babelbabel avatar

    babel/babel

    44,009View on GitHub↗

    Babel is a pluggable JavaScript compiler and transpiler that converts modern ECMAScript syntax into backwards-compatible versions of the language. It functions as an abstract syntax tree manipulator, parsing source code into a hierarchical structure to traverse and modify nodes for custom code transformations. The system utilizes a plugin-driven architecture to apply specific transformation rules and supports presets that bundle multiple plugins into named configuration groups. This enables the transformation of experimental syntax and the injection of non-global polyfills to ensure consisten

    TypeScriptastbabelcompiler
    View on GitHub↗44,009
  • swc-project/swcswc-project avatar

    swc-project/swc

    33,909View on GitHub↗

    This project is a high-performance compiler written in Rust that transpiles TypeScript and ECMAScript into compatible JavaScript code. It functions as a TypeScript transpiler, a JavaScript minifier, and a JavaScript bundler. The system distinguishes itself through a WebAssembly plugin host that allows the execution of custom transformation rules without modifying the core binary. It also provides specialized compilation for React source code to improve runtime performance and reduce execution overhead. The broader capability surface includes source-to-source compilation, type annotation stri

    Rustbabelcompilerecmascript
    View on GitHub↗33,909
Compare all 30 related projects→