awesome-repositories.com
Blog
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
facebook avatar

facebook/jscodeshift

0
View on GitHub↗
9,952 estrellas·488 forks·JavaScript·mit·8 vistasjscodeshift.com↗

Jscodeshift

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 experimental syntax.

The toolkit covers broad capabilities for AST management, including node construction, location, and modification. It includes a CLI for automation tasks such as batch file processing, glob-based file resolution, and transformation validation through the use of test suites and fixtures.

Features

  • AST Transformation Tools - Provides a comprehensive toolkit for parsing and transforming source code using Abstract Syntax Trees.
  • AST Structure Modification - Implements code changes by replacing, inserting, removing, or renaming nodes within the source tree.
  • AST to Source Conversion - Converts a modified abstract syntax tree back into formatted source code for project integration.
  • Codemod Migration Tools - Automates large-scale code refactoring and library migrations across an entire project using transformation scripts.
  • Automated Code Refactoring - Automatically applies structural changes to source code to perform large-scale refactoring.
  • Code Refactoring Tools - Modifies source code by manipulating its structural tree while preserving original formatting and stylistic properties.
  • Code Transformation Tools - Provides a runtime for executing transformation scripts against files or standard input for structural refactoring.
  • Stylistic Property Preservation - Maintains the original formatting and stylistic properties of source code during the tree transformation process.
  • API Migrations - Automates repetitive structural changes across many files to move projects to new API or library versions.
  • Format-Preserving Printing - Preserves original source formatting and stylistic properties when converting the AST back to text.
  • Abstract Syntax Tree Tools - Includes a safe builder for programmatically generating and modifying AST nodes to ensure structurally valid source code.
  • Interchangeable Parser Integrations - Integrates interchangeable parsing engines to support various JavaScript standards and experimental syntax features.
  • AST Node Predicate Filtering - Isolates specific code elements for transformation using boolean predicates applied during tree traversal.
  • AST Node Generation - Provides safe builder methods to programmatically generate abstract syntax tree nodes.
  • AST Node Collection Filtering - Isolates specific elements for transformation by sifting through sets of nodes using predicates and type checks.
  • AST Node Location - Searches for nodes based on type, name, or relationship to identify specific elements and their enclosing scopes.
  • Parser Configurations - Allows specifying different parsing engines to support various JavaScript language standards and experimental syntax.
  • File Processing Utilities - Executes transformation scripts over large batches of target files and generates processing summaries.
  • Development Automation - Provides a framework for creating custom scripts to automate repetitive coding tasks and complex search-and-replace operations.
  • Visitor Patterns - Employs the visitor pattern to walk the code hierarchy and trigger handlers on specific node types.
  • Safe AST Node Builders - Provides safe builder methods to programmatically generate structurally valid abstract syntax tree nodes.
  • Transformation Rule Testing - Verifies transformation accuracy by comparing input fixtures against expected output files in a test suite.
  • Packages - Listed in the “Packages” section of the Awesome Ava awesome list.

Historial de estrellas

Gráfico del historial de estrellas de facebook/jscodeshiftGráfico del historial de estrellas de facebook/jscodeshift

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Alternativas open-source a Jscodeshift

Proyectos open-source similares, clasificados según cuántas características comparten con Jscodeshift.
  • benjamn/recastAvatar de benjamn

    benjamn/recast

    5,246Ver en GitHub↗

    Recast is a JavaScript AST parser and printer designed for automated code refactoring. It converts source code into abstract syntax trees that can be modified and then printed back into source code. The project focuses on formatting-preserving transformations, storing original whitespace and indentation metadata within syntax tree nodes to reconstruct code without losing its original layout. It also generates character-level source maps to maintain precise correspondences between original input and transformed output. The toolkit includes utilities for syntax tree manipulation using a visito

    TypeScript
    Ver en GitHub↗5,246
  • postcss/postcssAvatar de postcss

    postcss/postcss

    28,968Ver en GitHub↗

    PostCSS is a CSS post-processor and abstract syntax tree transformation tool that parses stylesheets into a structured tree for programmatic analysis and modification. It functions as a plugin-driven pipeline where JavaScript plugins can modify, insert, or delete nodes to transform styles. The project provides a framework for building a custom plugin ecosystem to extend the CSS language with non-standard features such as loops, conditionals, and shorthand properties. It supports multi-syntax parsing through pluggable parsers and stringifiers, allowing it to process various style formats and c

    TypeScriptastcssframework
    Ver en GitHub↗28,968
  • openrewrite/rewriteAvatar de openrewrite

    openrewrite/rewrite

    3,312Ver en 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
    Ver en GitHub↗3,312
  • nikic/php-parserAvatar de nikic

    nikic/PHP-Parser

    17,437Ver en GitHub↗

    PHP-Parser is a tool that converts PHP source code into an abstract syntax tree for static analysis and programmatic manipulation. It functions as a parser, a code generator, and a static analysis framework. The project enables the programmatic construction of abstract syntax tree nodes through a fluent interface and provides the ability to transform these trees back into formatted source code. It includes a serializer that exports abstract syntax trees to JSON format and reconstructs them from strings. The toolset covers several capability areas, including namespace resolution, constant exp

    PHP
    Ver en GitHub↗17,437
Ver las 30 alternativas a Jscodeshift→

Preguntas frecuentes

¿Qué hace facebook/jscodeshift?

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.

¿Cuáles son las características principales de facebook/jscodeshift?

Las características principales de facebook/jscodeshift son: AST Transformation Tools, AST Structure Modification, AST to Source Conversion, Codemod Migration Tools, Automated Code Refactoring, Code Refactoring Tools, Code Transformation Tools, Stylistic Property Preservation.

¿Qué alternativas de código abierto existen para facebook/jscodeshift?

Las alternativas de código abierto para facebook/jscodeshift incluyen: benjamn/recast — Recast is a JavaScript AST parser and printer designed for automated code refactoring. It converts source code into… postcss/postcss — PostCSS is a CSS post-processor and abstract syntax tree transformation tool that parses stylesheets into a structured… openrewrite/rewrite — OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic… nikic/php-parser — PHP-Parser is a tool that converts PHP source code into an abstract syntax tree for static analysis and programmatic… rectorphp/rector — Rector is an automated PHP refactoring and modernization tool designed to upgrade language versions and modernize… analysis-tools-dev/static-analysis — This project is a comprehensive, curated directory of static analysis, linting, and security scanning utilities. It…