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

component-dependence-analyzer

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

component-dependence-analyzer

一个用于分析组件依赖的工具。

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

component-dependence-analyzer

一个用于分析组件依赖的工具。

注:目前只支持 vue 组件的依赖分析。

安装

npm install component-dependence-analyzer

使用示例

  1. 项目目录默认为当前目录,分析 example.vue 文件的依赖关系
rely -f 'E:\projectDir\xxx\example.vue'

2.指定项目目录,分析 example.vue 文件的依赖关系

rely -p 'E:\projectDir'  -f 'E:\projectDir\xxx\example.vue'

3.配置别名

rely -p -f 'E:\projectDir\xxx\example.vue' -a "@:./src;@components:./src/components"

4.配置解析顺序

rely -p -f 'E:\projectDir\xxx\example.vue' -e ".js,.jsx,.vue,.json"

5.将分析结果输出到浏览器上(默认只是打印出来)

rely -f 'E:\projectDir\xxx\example.vue' -o
参数是否必须默认值参数含义
-f, --filePathyes/组件绝对路径
-p, --projectDirnoprocess.cwd()需要分析的项目目录(默认当前路径)
-a, --aliasno""路径别名
-e, --extensionsno".ts,.tsx,.js,.jsx,.vue,.json"解析顺序
-o, --opennofalse打开浏览器
-V, --version//输出版本号
-h, --help//输出帮助信息

FAQs

Package last updated on 03 Nov 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

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