Fast TypeScript Analyzer CLI

3.0.0 · active · verified Wed Apr 22

FTA (Fast TypeScript Analyzer) is a static analysis tool designed for TypeScript and JavaScript code, implemented in Rust for superior performance. It utilizes the SWC parser to efficiently analyze codebases and generate metrics concerning complexity and maintainability. The current stable version is 3.0.0, which features upgraded SWC libraries for enhanced accuracy in operand/operator counting and includes support for modern JavaScript/TypeScript syntax such as `import with`. The project exhibits an active release cadence, with frequent updates and major versions, reflecting continuous development. A key differentiator is its exceptional speed, capable of processing up to 1600 files per second on typical hardware, making it highly suitable for large-scale projects. It provides clear, actionable analytics to help developers identify and address potential maintainability issues.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates the basic usage of the `fta-cli` command-line tool to analyze a project directory or specific files.

npx fta-cli ./src --format table --exclude-under 10

# Example of running against a specific file or directory
npx fta-cli my-project/index.ts

# To analyze your current project directory
npx fta-cli .

view raw JSON →