Back to Explore

benjamn/recast

GitHub
1 watchersOpen source

Last release: 4/27/2022

Recast is a JavaScript syntax tree transformer, with a nondestructive pretty-printer that reprints modified code while preserving existing formatting where possible. It also generates automatic source maps to map between original and transformed code, making it useful for safe code transformations and debugging.

Project status

  • The repository appears to have some recent activity (last upstream push on 2025-03-03), but the provided update history includes no recent version updates beyond v0.21.1 in 2022-04-27.
  • Apparent update cadence is very infrequent based on the shown versions (v0.7.0 in 2014, then v0.21.1 in 2022), which suggests maintenance rather than rapid feature iteration.

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v0.21.1

    4/27/2022

    Release v0.21.1 focuses on formatter correctness fixes, including parenthesis insertion, string escaping edge cases (U+2028, U+2029), and missing-parens issues. It also includes several dependency bumps (Babel preset-env, esprima types, and tooling libraries).

  • v0.7.0

    8/15/2014

    Release v0.7.0 switches the default JavaScript parser to use the NPM package `esprima-fb`. This change may affect how source code is parsed, which can influence downstream behavior that depends on the produced AST.