Socket
Socket
Sign inDemoInstall

tssa

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tssa

TypeScript Safety Analyzer — a tool for analyzing TypeScript code for safety


Version published
Weekly downloads
3
decreased by-66.67%
Maintainers
1
Install size
25.8 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 28 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc