File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -20,39 +20,46 @@ A command-line tool for analyzing React component usage hierarchies in your proj
20
20
## Installation
21
21
22
22
1 . Clone the repository:
23
+
23
24
``` bash
24
25
git clone < your-repo-url>
25
26
cd react-component-usage-finder
26
27
```
27
28
28
29
2 . Install dependencies:
30
+
29
31
``` bash
30
32
npm install
31
33
```
32
34
33
35
3 . Make the script executable:
36
+
34
37
``` bash
35
- chmod +x index .js
38
+ chmod +x main .js
36
39
```
37
40
38
41
4 . Optional: Install globally to use from anywhere:
42
+
39
43
``` bash
40
44
npm install -g .
41
45
```
42
46
43
47
## Usage
44
48
45
49
### Basic Usage
50
+
46
51
``` bash
47
- node index .js -c ComponentName
52
+ node main .js -c ComponentName
48
53
```
49
54
50
55
### Specify Directory
56
+
51
57
``` bash
52
- node index .js -d /path/to/project -c ComponentName
58
+ node main .js -d /path/to/project -c ComponentName
53
59
```
54
60
55
61
### If Installed Globally
62
+
56
63
``` bash
57
64
react-component-usage-finder -c ComponentName
58
65
```
You can’t perform that action at this time.
0 commit comments