# @vuensight/cli

> Command line interface of @vuensight.

Latest version **0.1.5** (published 2023-03-11) · (MIT) license · 0 weekly downloads

## Install

```sh
npm install @vuensight/cli
pnpm add @vuensight/cli
yarn add @vuensight/cli
bun add @vuensight/cli
```

Provides the command `vuensight`.

## 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.1.5 |
| Published | 2023-03-11 |
| First published | 2022-04-22 |
| Weekly downloads | 0 |
| License | (MIT) |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 43.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 213 |
| Author | Martina Scharrer |
| Maintainers | martinascharrer |
| Keywords | cli, node.js |

## Links

- npm: https://www.npmjs.com/package/@vuensight/cli
- Repository: https://github.com/martinascharrer/vuensight
- Homepage: https://github.com/martinascharrer/vuensight#readme
- Issues: https://github.com/martinascharrer/vuensight/issues
- npm.io page: https://npm.io/package/@vuensight/cli

## Dependencies (2)

- [commander](https://npm.io/package/commander.md) ^9.1.0
- [@vuensight/app](https://npm.io/package/@vuensight/app.md) ^0.3.1

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.1.5 (latest) — 2023-03-11
- 0.1.4 — 2022-05-03
- 0.1.3 — 2022-04-29
- 0.1.2 — 2022-04-29
- 0.1.1 — 2022-04-29
- 0.1.0 — 2022-04-22

## README

# vuensight 👀
Visualize Vue.js **component relationships** and **communication channels**, i.e. props, events and slots. This tool operates on the
command line and is made for developers. The aim of vuensight is to provide visual insight into the components of a
Vue.js project and to support developers before and during refactoring, e.g. by visually analyzing which prop is used
in which parent component or by highlighting unused components or channels.

An example visualization of vuensight itself:
![demo image of vuensight](docs/vuensight-demo.png)

This tool is built on top of the two awesome packages:
- [dependency-cruiser](https://github.com/sverweij/dependency-cruiser) for building the dependency tree
- [vue-docgen-api](https://github.com/vue-styleguidist/vue-styleguidist/tree/dev/packages/vue-docgen-api) for parsing the Vue files

## Getting started 🚀
### Install
First, install the cli package either locally in the project you want to visualize:
```
npm i -D @vuensight/cli
```

Or globally on your machine if you plan to visualize multiple projects:
```
npm i -g @vuensight/cli
```

### Run
Then run the tool in your project folder:
```
vuensight
```

#### Options
- `--dir` or `-d` (optional): Specify the directory that should be parsed relative from your current working directory, default is `src`
- `--port` or `-p` (optional): Start the application in a different port, default is 4444
- `--webpack-config` or `-wpc` (optional): Specify the path to your webpack-config (from your current working directory). This is particularly important if you use aliases.
- `--ts-config` or `-tsc` (optional): Specify the path to your TypeScript config file (from your current working directory).

An example usage:
```
vuensight --dir resources/js --port 9999 --webpack-config ./webpack-config.json --ts-config ./tsconfig.json
```

## Licencse
[MIT](LICENSE.txt)

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