Spinne
Spins a web of components and analyzes component/prop usage in your react project
## Installation
Spinne is a command line tool written in rust, so you need to have rust/cargo installed.
```bash
cargo install spinne
```
## Usage
To scan for components in your current directory:
```bash
spinne
```
This command will output the results in a file 'spinne-report.json' by default.
If you want to output it directly to the console you can use `-o console`:
```bash
spinne -o console
```
To output the results in a html format with a visualization of the component graph:
```bash
spinne -f html
```
## Options
| Option | Description | Options | Default |
| --- | --- | --- | --- |
| `-e, --entry ` | entry point directory | Path | current directory (./) |
| `-f, --format ` | define the output format | `file`, `console`, `html` | file |
| `-i, --ignore ` | define ignored folders | comma separated glob patterns | `**/node_modules/**,**/dist/**,**/build/**` |
| `--file-name ` | define the output file name | String | `spinne-report` |
| `-l, --log-level ` | define the log level | `error`, `warn`, `info`, `debug`, `trace` | `info` |
| `--include ` | define a glob pattern to include | comma separated glob patterns | `**/*.tsx` |
| `--exclude ` | define a glob pattern to exclude | comma separated glob patterns | `**/node_modules/**,**/dist/**,**/build/**,**/*.stories.tsx,**/*.test.tsx` |