Skip to content

TSCheck

@masumdev/tscheck is a high-performance TypeScript AST auditing CLI tool and engine. It inspects single projects or monorepos for deprecated API usages, unused variables/imports, explicit any types, and circular dependencies, rendering a terminal interface powered by Ink (React in Terminal) with zero emojis and 100% test coverage.

Package & CI Stats

total downloadsnpm versiontest coveragetests passingci statuslicense

Core Capabilities

AST Deprecation Analysis

Detects usages of functions, methods, classes, properties, and types tagged with JSDoc @deprecated, displaying the deprecation reason and exact call sites.

Unused Diagnostic Scanner

Analyzes TypeScript compiler diagnostics to catch unused variables, imports, parameters, and destructured items across all packages.

Strict Any-Type Policy

Flags explicit any type annotations, assertions (as any), and generic type arguments to uphold strict type safety standards.

Circular Dependency Inspector

Traces module dependency graphs to catch and resolve cross-file circular dependency cycles.

Git Staged & Diff Filtering

Execute sub-second pre-commit scans with --staged or CI PR audits with --since <branch>.

Auto-Fixer Engine

Safely auto-prefixes unused parameters and variables with _ via --fix without breaking runtime code.

Interactive Ink React UI

Renders real-time scan progress with animated spinners, progress bars, and ASCII summary tables using React & Ink with a strict zero-emoji aesthetic.

Rich Interactive HTML Reports

Generates single-file self-contained HTML audit reports with live filtering, dark/light mode toggle, and clickable deprecation links.

100% Green Code Coverage

Guaranteed reliability with 62 unit and end-to-end integration tests spanning AST rules, terminal rendering, configuration parsing, and CLI subprocess execution.


Getting Started