Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 736 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 736 Bytes

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}`);