# fs-analyze

> 前端项目静态依赖分析

Latest version **0.0.4** (published 2023-07-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install fs-analyze
pnpm add fs-analyze
yarn add fs-analyze
bun add fs-analyze
```

Provides the command `fs-analyze`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2023-07-04 |
| First published | 2023-07-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 207.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | xuyan0 |

## Links

- npm: https://www.npmjs.com/package/fs-analyze
- Repository: https://git.100tal.com/bigclass_xueyanqianduan_fe_com/fs-analyze
- npm.io page: https://npm.io/package/fs-analyze

## Dependencies (3)

- [opener](https://npm.io/package/opener.md) ^1.5.2
- [commander](https://npm.io/package/commander.md) ^10.0.0
- [shell-quote](https://npm.io/package/shell-quote.md) ^1.8.0

## Recent versions

- 0.0.4 (latest) — 2023-07-04

## README

# fs-analyze

前端项目静态依赖分析

```js
program
  .option('-e, --entry <type>', 'entry')
  .option('-f, --file <type>', 'files ')
```

install
```js
npm install -g  @bcc/fs-analyze 
```


### 支持只配置entry
```js
 fs-analyze -e ./build/entry.js
```

### 支持传入配置文件
```js
fs-analyze -f ./build/config.js
```

#### config中可以配置以下内容
```js
const config = {
  entry:'./src/views/home',
  alias:{
    '@':'/Users/xxx/WebstormProjects/project/src'
  }
}
module.exports = config
```
### 分析图如下：
![img.png](img.png)
![img_1.png](img_1.png)

### 详细说明

* 全局模式/节点模式：全局模式下，根节点不会改变；节点模式下，被点击的节点会变为根节点
* 全部打开：将树形图节点全部展开
* 全部收齐：将树形图节点全部收齐，只留下1层深度
* 当前节点：根节点
* 打开vscode：打开vscode并跳转到当前节点对应位置
* 打开webstorm：打开webstorm并跳转到当前节点对应位置

---
_Source: https://npm.io/package/fs-analyze · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
