suyou
This document is also available in 中文.
suyou is an npm dependency visualization and analysis tool.
Getting Started
Installation
To globally install suyou, run the following command:
npm install -g suyou
Alternatively, you can use yarn:
yarn global add suyou
Analyzing Dependencies
Use the following command to analyze dependencies:
npx suyou-cli analyze
Or with yarn:
suyou-cli analyze
You can also use short commands:
npx analyze
Or with yarn:
analyze
Optional Parameters
You can use the following optional parameters to customize the analysis process:
-
Depth of recursive analysis:
-d=<n>
/--depth=<n>
Example:
-d=3
/--depth=3
-
Output JSON file:
-j=[file-path]
/--json=[file-path]
Example:
-j=./analyze/package.json
/--json=./analyze/package.json
Note: [file-path]
is optional and defaults to ./analyze/package.json
.
Please follow the instructions above to install suyou and start using the dependency analysis tool. If you have any questions or need further assistance, feel free to ask.