awesome-repositories.com
المدونة
MCP
awesome-repositories.com

اكتشف أفضل مستودعات المصادر المفتوحة باستخدام بحث مدعوم بالذكاء الاصطناعي.

استكشفعمليات بحث منسقةبدائل مفتوحة المصدربرمجيات ذاتية الاستضافةالمدونةخريطة الموقع
المشروعحولكيفية ترتيب النتائجالصحافةخادم MCP
قانونيالخصوصيةالشروط
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
benjamn avatar

benjamn/recast

0
View on GitHub↗
5,246 نجوم·358 تفرعات·TypeScript·MIT·5 مشاهدات

Recast

Recast هو محلل وطابعة AST بلغة JavaScript مصمم لإعادة هيكلة الكود المؤتمت. يقوم بتحويل الكود المصدري إلى أشجار بناء جملة مجردة يمكن تعديلها ثم طباعتها مرة أخرى إلى كود مصدري.

يركز المشروع على التحويلات التي تحافظ على التنسيق، حيث يخزن البيانات الوصفية الأصلية للمسافات البيضاء والمسافات البادئة داخل عقد شجرة البناء لإعادة بناء الكود دون فقدان تخطيطه الأصلي. كما يولد خرائط مصدر على مستوى الأحرف للحفاظ على مراسلات دقيقة بين المدخلات الأصلية والمخرجات المحولة.

تتضمن مجموعة الأدوات أدوات مساعدة للتلاعب بشجرة البناء باستخدام نمط الزائر (visitor pattern)، بالإضافة إلى خيارات لطباعة الأنماط العامة الجميلة. يتم توفير واجهة سطر أوامر لتنفيذ دوال التحويل هذه على الملفات المستهدفة وكتابة النتائج على القرص.

Features

  • Automated Code Refactoring - Automates structural changes to JavaScript source code through programmatic AST manipulation to update patterns across codebases.
  • AST Structure Modification - Provides utilities for replacing, inserting, and removing nodes within the abstract syntax tree structure.
  • AST-Based Source Transformations - Provides structural modifications of source code by replacing matched syntax tree nodes while preserving original formatting.
  • JavaScript AST Transformations - Performs structural modifications of JavaScript source code represented as an abstract syntax tree.
  • Formatting-Preserving Transformers - Modifies JavaScript syntax trees while preserving original whitespace and indentation in the resulting output.
  • Code Refactoring Tools - Automates JavaScript code refactoring by manipulating AST nodes and regenerating source files.
  • Format-Preserving Printing - Retains original whitespace and formatting tokens within the AST to reconstruct source code without losing layout.
  • JavaScript AST Printers - Provides a complete system for parsing JavaScript into ASTs and printing them back to source code.
  • Source Code Generators - Programmatically generates valid JavaScript source code from modified abstract syntax tree representations.
  • Abstract Syntax Tree Parsing - Converts JavaScript source code into a structured tree representation while retaining formatting metadata.
  • Tree Traversal - Utilizes a visitor pattern to programmatically navigate and apply transformations to nodes within the syntax tree.
  • Non-Destructive Source Printing - Splices original source text fragments around modified syntax tree nodes to maintain existing indentation during printing.
  • Syntax Tree Transformers - Provides tools for modifying and rewriting syntax trees to perform complex code transformations.
  • Source Map Generation - Implements character-level source maps to maintain precise correspondences between original input and transformed output.
  • Pretty Printing Algorithms - Offers a generic style pretty-printer that applies consistent global indentation rules regardless of original formatting.
  • JavaScript Source Maps - Generates precise character-level source maps specifically for transformed JavaScript files.
  • Source Map Generation - Creates character-by-character mappings between original source files and generated output for debugging.
  • Source Map Generators - Provides character-level source maps that link transformed output back to the original JavaScript source files.
  • AST & Language Tools - JavaScript AST transformer with source map support.
  • Development Utilities - Syntax tree transformer and source map generator.

سجل النجوم

مخطط تاريخ النجوم لـ benjamn/recastمخطط تاريخ النجوم لـ benjamn/recast

بحث بالذكاء الاصطناعي

استكشف المزيد من المستودعات الرائعة

صف ما تحتاجه بلغة بسيطة — وسيقوم الذكاء الاصطناعي بترتيب آلاف المشاريع مفتوحة المصدر المنسقة حسب الصلة.

Start searching with AI

بدائل مفتوحة المصدر لـ Recast

مشاريع مفتوحة المصدر مشابهة، مرتبة حسب عدد الميزات المشتركة مع Recast.
  • facebook/jscodeshiftالصورة الرمزية لـ facebook

    facebook/jscodeshift

    9,952عرض على GitHub↗

    jscodeshift is a JavaScript AST transformation toolkit and codemod engine designed for large-scale code refactoring and structural migrations. It provides a set of utilities to parse source code into abstract syntax trees, programmatically modify those trees, and convert them back into source text. The tool distinguishes itself by preserving original source formatting and stylistic properties during the transformation process. It utilizes a builder for generating structurally valid AST nodes and integrates interchangeable parsing engines to support different language standards and experimenta

    JavaScript
    عرض على GitHub↗9,952
  • dsherret/ts-morphالصورة الرمزية لـ dsherret

    dsherret/ts-morph

    6,110عرض على GitHub↗

    ts-morph is a TypeScript AST manipulation library and a high-level wrapper for the TypeScript compiler API. It provides a programmatic interface for analyzing, modifying, and generating TypeScript source code, serving as a tool for automated code refactoring and source code generation. The library simplifies the process of navigating and inspecting project structures by offering an object-oriented abstraction over the underlying compiler API. It allows for the programmatic transformation of existing codebases to automate structural updates and bulk code migrations. Its capabilities cover sta

    TypeScript
    عرض على GitHub↗6,110
  • openrewrite/rewriteالصورة الرمزية لـ openrewrite

    openrewrite/rewrite

    3,312عرض على GitHub↗

    OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic tree parser to represent source code as type-aware trees that preserve original whitespace and formatting, enabling precise and deterministic modifications. The project utilizes a declarative refactoring pipeline where sequences of transformations are defined in YAML to resolve breaking changes and technical debt. It features type-aware pattern matching and cross-language model mapping to apply similar refactoring patterns across different programming languages. The framework

    Javaabstract-syntax-treeastcode-search
    عرض على GitHub↗3,312
  • unifiedjs/unifiedالصورة الرمزية لـ unifiedjs

    unifiedjs/unified

    4,999عرض على GitHub↗

    Unified is a syntax tree processing engine and content ecosystem designed to parse, transform, and serialize text content. It functions as a plugin-based content pipeline that converts raw text into structured abstract syntax trees using plain JavaScript objects for programmatic inspection and modification. The project distinguishes itself through a modular architecture that enables cross-ecosystem translation, allowing syntax trees to be converted between different specifications such as HTML and Markdown. It utilizes a system of immutable processor cloning and shared state containers, ensur

    JavaScriptastcstjavascript
    عرض على GitHub↗4,999
عرض جميع البدائل الـ 30 لـ Recast→

الأسئلة الشائعة

ما هي وظيفة benjamn/recast؟

Recast هو محلل وطابعة AST بلغة JavaScript مصمم لإعادة هيكلة الكود المؤتمت. يقوم بتحويل الكود المصدري إلى أشجار بناء جملة مجردة يمكن تعديلها ثم طباعتها مرة أخرى إلى كود مصدري.

ما هي الميزات الرئيسية لـ benjamn/recast؟

الميزات الرئيسية لـ benjamn/recast هي: Automated Code Refactoring, AST Structure Modification, AST-Based Source Transformations, JavaScript AST Transformations, Formatting-Preserving Transformers, Code Refactoring Tools, Format-Preserving Printing, JavaScript AST Printers.

ما هي البدائل مفتوحة المصدر لـ benjamn/recast؟

تشمل البدائل مفتوحة المصدر لـ benjamn/recast: facebook/jscodeshift — jscodeshift is a JavaScript AST transformation toolkit and codemod engine designed for large-scale code refactoring… dsherret/ts-morph — ts-morph is a TypeScript AST manipulation library and a high-level wrapper for the TypeScript compiler API. It… openrewrite/rewrite — OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic… unifiedjs/unified — Unified is a syntax tree processing engine and content ecosystem designed to parse, transform, and serialize text… rubberduck-vba/rubberduck — Rubberduck is a development environment extension designed for legacy Visual Basic and Visual Basic for Applications… benjamn/ast-types — This project is a framework for building, manipulating, and analyzing abstract syntax trees. It provides a toolkit for…