New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@yumemi-inc/statictrace

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yumemi-inc/statictrace

A library for semi-automatic static testing.

  • 1.0.0-beta.14
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

statictrace

日本語

Requirements

Node.js 14.15.0 or later.

Usage

Currently you can only use this tool by building it from source.

pnpm install
pnpm run build

With ts-node:

`pnpx ts-node src/lib.ts -p /absolute/path/to/tsconfig.json`

Use as CLI

pnpm run build
pnpm run parse -- -p /absolute/path/to/tsconfig.json

You can omit the -p option by creating an .env file with a TS_PROJECT_CONFIG variable.

Other options

  • u, --use <printer> (optional): choose one of default printer types (text or mermaid).

Examples

  • Output the result printed as mermaid graphs to a markdown file: pnpm run parse -- -u mermaid > graphs.md
TS_PROJECT_CONFIG=/absolute/path/to/tsconfig.json

Use API programmatically

const { run } = require('./build/lib');
const output = run('/absolute/path/to/tsconfig.json');
// ...do something with output
run(pathToTsConfig: string, printerType: "text" | "mermaid"): any

Load all project files and build a graph of all function calls marked with @entrypoint or @trace tags. You should pass a printer type as a second argument. A printer is an interface that represents anything that can print (display the static analysis result in one way or another). Currently you cannot provide your own implementations but can choose one of the default ones.

Keywords

FAQs

Package last updated on 15 Jul 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc