ts-morph

ts-morph is an improved wrapper library for TypeScript Compiler API. It facilitates the process of programmatically modifying TypeScript and JavaScript codes with static analysis. The project provides tools to navigate the code and make structural arrangements.

TS

dsherret · Code Quality & Review

STARS6.2K
FORKS248
COMMITS0
CONTRIBUTORS0
VERSION28.0.0
UPDATED1 mo ago
TypeScriptStatic AnalysisCompiler APIAST ManipulationMIT

Common commercial products in this category: SonarCloud, Codacy, DeepSource

What can it do?
  • You navigate programmatically on TypeScript and JavaScript code files.
  • Using the compiler API, you automatically change the source codes.
  • You study the code structure and AST nodes for static analysis processes.
User reviews
  • ↑ PositiveHacker News

    Ts-morph – programmatically manipulate TypeScript source code with TypeScript

    “Is it possible to use ts-morph to generate new code or is it mostly aimed at modifying existing code? I want to generate some boilerplate in a project im working on but not sure what the best tool is”

  • ↓ NegativeGitHub Issue

    Unable to append statements to a function or add any class level attributes

    “**Describe the bug** Version: X.X.X Unable to append statements to a function. **To Reproduce** Add a statement to MethodDeclaration, works for first time but we try to append one more statement with add statement method or insert statement method, I get, doManipulation.js:11…”

My note

Alternative pages

More in: Code Quality & Review