tssa
v0.8.0
Published
TypeScript Safety Analyzer — a tool for analyzing TypeScript code for safety
Downloads
15
Readme
TS Safety Analyzer
[!WARNING] This tool is still in development and may not work as expected !!!
Installation
npm i -g tssa
Usage
tssa
By default, the tool will analyze the current directory. You can also specify a directory to analyze:
tssa path/to/directory
Enable logging:
tssa --log
API
import { analyzeProject, constants } from "tssa";
const { totalLines, issues, skippedFiles, score } =
analyzeProject("path/to/directory");
console.log(`Total lines: ${totalLines}`);
console.log(`Total issues: ${issues.length}`);
console.log(`Skipped files: ${skippedFiles}`);
console.log(`Score: ${score.toFixed(2)} / ${constants.MAX_SCORE}`);