Skip to content

lobotomoe/ts-safety-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Stop doing shit in TS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published