New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@tbmini/code-parse

Package Overview
Dependencies
Maintainers
7
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tbmini/code-parse

解析code

latest
npmnpm
Version
1.2.4
Version published
Maintainers
7
Created
Source

id: code-parse

对ts代码静态分析

Install

npm i -s @tbmini/code-parse
// or
yarn add @tbmini/code-parse

Usage

import { parseAllBefore } from '@tbmini/code-parse'

const project = new Project({ tsConfigFilePath: `./tsconfig.json` })
const checker = project.getTypeChecker().compilerObject
const sourceFiles = project.getSourceFiles(`./src/mini-tornado/microservice/**/beforeModule.ts`)

const beforeAnalysis = parseAllBefore(sourceFiles, checker)

FAQs

Package last updated on 27 May 2022

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