tssa
TypeScript icon, indicating that this package has built-in type declarations

0.8.0 • Public • Published

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

Package Sidebar

Install

npm i tssa

Weekly Downloads

1

Version

0.8.0

License

ISC

Unpacked Size

26.5 kB

Total Files

35

Last publish

Collaborators

  • lobotomoe