dir-analysis-tool 1.0.4 ā 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +195 -278
- package/dist/index.js +1310 -0
- package/package.json +45 -28
- package/bin/advanced-analysis.d.ts +0 -43
- package/bin/advanced-analysis.d.ts.map +0 -1
- package/bin/advanced-analysis.js +0 -187
- package/bin/advanced-analysis.js.map +0 -1
- package/bin/analyzer.d.ts +0 -40
- package/bin/analyzer.d.ts.map +0 -1
- package/bin/analyzer.js +0 -215
- package/bin/analyzer.js.map +0 -1
- package/bin/classifier.d.ts +0 -27
- package/bin/classifier.d.ts.map +0 -1
- package/bin/classifier.js +0 -63
- package/bin/classifier.js.map +0 -1
- package/bin/cli.d.ts +0 -2
- package/bin/cli.d.ts.map +0 -1
- package/bin/cli.js +0 -421
- package/bin/cli.js.map +0 -1
- package/bin/config.d.ts +0 -10
- package/bin/config.d.ts.map +0 -1
- package/bin/config.js +0 -94
- package/bin/config.js.map +0 -1
- package/bin/export.d.ts +0 -20
- package/bin/export.d.ts.map +0 -1
- package/bin/export.js +0 -56
- package/bin/export.js.map +0 -1
- package/bin/html-report.d.ts +0 -12
- package/bin/html-report.d.ts.map +0 -1
- package/bin/html-report.js +0 -695
- package/bin/html-report.js.map +0 -1
- package/bin/index.d.ts +0 -3
- package/bin/index.d.ts.map +0 -1
- package/bin/index.js +0 -5
- package/bin/index.js.map +0 -1
- package/bin/interactive.d.ts +0 -27
- package/bin/interactive.d.ts.map +0 -1
- package/bin/interactive.js +0 -637
- package/bin/interactive.js.map +0 -1
- package/bin/progress.d.ts +0 -9
- package/bin/progress.d.ts.map +0 -1
- package/bin/progress.js +0 -42
- package/bin/progress.js.map +0 -1
- package/bin/tree-view.d.ts +0 -21
- package/bin/tree-view.d.ts.map +0 -1
- package/bin/tree-view.js +0 -140
- package/bin/tree-view.js.map +0 -1
- package/bin/types.d.ts +0 -43
- package/bin/types.d.ts.map +0 -1
- package/bin/types.js +0 -3
- package/bin/types.js.map +0 -1
- package/bin/utils.d.ts +0 -24
- package/bin/utils.d.ts.map +0 -1
- package/bin/utils.js +0 -59
- package/bin/utils.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Khaled Saeed
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Khaled Saeed
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,278 +1,195 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
dir-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
## š Output Formats
|
|
198
|
-
|
|
199
|
-
### Console Output
|
|
200
|
-
|
|
201
|
-
Rich, colorized console output with:
|
|
202
|
-
|
|
203
|
-
- š Directory summary
|
|
204
|
-
- š File type breakdown
|
|
205
|
-
- šØ Large files list
|
|
206
|
-
- š Duplicate file groups
|
|
207
|
-
- š³ Tree view (optional)
|
|
208
|
-
|
|
209
|
-
### JSON Output
|
|
210
|
-
|
|
211
|
-
```json
|
|
212
|
-
{
|
|
213
|
-
"path": "/Users/example/Documents",
|
|
214
|
-
"totalSizeBytes": 1048576000,
|
|
215
|
-
"totalSizeMB": 1000,
|
|
216
|
-
"folders": 150,
|
|
217
|
-
"files": 2500,
|
|
218
|
-
"types": {
|
|
219
|
-
"images": 450,
|
|
220
|
-
"documents": 800,
|
|
221
|
-
"code": 300,
|
|
222
|
-
"other": 950
|
|
223
|
-
},
|
|
224
|
-
"largeFiles": [...],
|
|
225
|
-
"duplicateGroups": [...]
|
|
226
|
-
}
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
### HTML Reports
|
|
230
|
-
|
|
231
|
-
Generate beautiful HTML reports with:
|
|
232
|
-
|
|
233
|
-
- š Interactive charts
|
|
234
|
-
- š Size distribution graphs
|
|
235
|
-
- šļø File type breakdowns
|
|
236
|
-
- š Detailed file listings
|
|
237
|
-
- šØ Modern, responsive design
|
|
238
|
-
|
|
239
|
-
### CSV Export
|
|
240
|
-
|
|
241
|
-
Export data to CSV for further analysis in spreadsheet applications.
|
|
242
|
-
|
|
243
|
-
## š§ API Usage
|
|
244
|
-
|
|
245
|
-
Use programmatically in your Node.js applications:
|
|
246
|
-
|
|
247
|
-
```javascript
|
|
248
|
-
import { DirectoryAnalyzer } from 'dir-analysis-tool';
|
|
249
|
-
|
|
250
|
-
const analyzer = new DirectoryAnalyzer();
|
|
251
|
-
|
|
252
|
-
const result = await analyzer.analyze({
|
|
253
|
-
path: '/path/to/analyze',
|
|
254
|
-
recursive: true,
|
|
255
|
-
excludePatterns: ['node_modules'],
|
|
256
|
-
largeSizeThreshold: 100 * 1024 * 1024, // 100MB
|
|
257
|
-
enableDuplicateDetection: true,
|
|
258
|
-
topN: 10
|
|
259
|
-
});
|
|
260
|
-
|
|
261
|
-
console.log(result);
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
## šÆ Use Cases
|
|
265
|
-
|
|
266
|
-
- **š§¹ Disk Cleanup** - Identify large files and duplicates consuming disk space
|
|
267
|
-
- **š Project Analysis** - Analyze project structure and file distributions
|
|
268
|
-
- **š Storage Audit** - Understand storage usage patterns
|
|
269
|
-
- **š Capacity Planning** - Monitor directory growth over time
|
|
270
|
-
- **š Performance Optimization** - Identify bottlenecks in file systems
|
|
271
|
-
- **š Documentation** - Generate reports for system documentation
|
|
272
|
-
- **š Backup Planning** - Identify important files and directories
|
|
273
|
-
|
|
274
|
-
## š ļø Requirements
|
|
275
|
-
|
|
276
|
-
- **Node.js** >= 18.0.0
|
|
277
|
-
- **npm** or **pnpm** or **yarn**
|
|
278
|
-
- **Operating System**: Windows, macOS, or Linux
|
|
1
|
+
# dir-analysis-tool
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/dir-analysis-tool)
|
|
4
|
+
[](https://github.com/KhaledSaeed18/dir-analysis-tool/actions/workflows/ci.yml)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://nodejs.org/)
|
|
7
|
+
|
|
8
|
+
A fast, memory-safe CLI for directory analysis ā file classification, duplicate detection, large-file identification, HTML reports, and multiple export formats.
|
|
9
|
+
|
|
10
|
+
## Quick Start
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install -g dir-analysis-tool # install globally
|
|
14
|
+
|
|
15
|
+
dat # analyze current directory
|
|
16
|
+
dat /path/to/project # analyze any path
|
|
17
|
+
dat analyze . --json | jq .files # pipe-safe JSON output
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Features
|
|
21
|
+
|
|
22
|
+
| Feature | Description |
|
|
23
|
+
|---|---|
|
|
24
|
+
| Single-pass streaming walk | No double I/O ā files are stat'd once |
|
|
25
|
+
| Streaming MD5 hashing | Duplicate detection without loading files into RAM |
|
|
26
|
+
| TTY-aware progress | Progress bar only in interactive terminals; silent in pipes |
|
|
27
|
+
| File type classification | Images, videos, audio, documents, code, archives, other |
|
|
28
|
+
| Duplicate detection | Groups identical files by content hash; shows wasted space |
|
|
29
|
+
| Large-file detection | Configurable threshold in MB |
|
|
30
|
+
| Empty-file detection | Find all zero-byte files |
|
|
31
|
+
| Top-N largest files | Quick disk usage overview |
|
|
32
|
+
| HTML reports | Charts and tables, matrix/terminal aesthetic |
|
|
33
|
+
| CSV export | Full analysis, large files, or duplicates |
|
|
34
|
+
| Tree view | Visual directory structure (up to 1 000 files) |
|
|
35
|
+
| Watch mode | Debounced re-analysis on every filesystem change |
|
|
36
|
+
| Directory comparison | Side-by-side stats for two directories |
|
|
37
|
+
| Config file | `.dir-analyzer.json` for default settings |
|
|
38
|
+
| Interactive init | `dat init` creates the config file with prompts |
|
|
39
|
+
|
|
40
|
+
## CLI Reference
|
|
41
|
+
|
|
42
|
+
### `dat [directory]` / `dat analyze [directory]`
|
|
43
|
+
|
|
44
|
+
Analyze a directory. Defaults to the current working directory.
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
dat # analyze cwd
|
|
48
|
+
dat /path/to/project # explicit path
|
|
49
|
+
dat analyze . --json # JSON output (no ANSI, pipe-safe)
|
|
50
|
+
dat analyze . --tree # directory tree view
|
|
51
|
+
dat analyze . --duplicates # detect duplicate files
|
|
52
|
+
dat analyze . --large-files # files > 100 MB
|
|
53
|
+
dat analyze . --large-files 50 # files > 50 MB
|
|
54
|
+
dat analyze . --empty-files # detect zero-byte files
|
|
55
|
+
dat analyze . --top-n 20 # top 20 largest files
|
|
56
|
+
dat analyze . --html # generate HTML report
|
|
57
|
+
dat analyze . --csv # export to CSV
|
|
58
|
+
dat analyze . --exclude node_modules dist coverage
|
|
59
|
+
dat analyze . --max-depth 3 # limit scan depth
|
|
60
|
+
dat analyze . --min-size 1000 # files >= 1 KB only
|
|
61
|
+
dat analyze . --date-from 2024-01-01 --date-to 2024-12-31
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**Options**
|
|
65
|
+
|
|
66
|
+
| Flag | Description |
|
|
67
|
+
|---|---|
|
|
68
|
+
| `--no-recursive` | Disable recursive scan |
|
|
69
|
+
| `-j, --json` | JSON output (suppresses progress, safe to pipe) |
|
|
70
|
+
| `--tree` | Show directory tree |
|
|
71
|
+
| `--no-types` | Hide file-type breakdown |
|
|
72
|
+
| `-e, --exclude <patterns...>` | Exclude dirs/files by name or glob |
|
|
73
|
+
| `-l, --large-files [mb]` | Detect large files (default threshold: 100 MB) |
|
|
74
|
+
| `-d, --duplicates` | Enable duplicate detection |
|
|
75
|
+
| `--empty-files` | Detect zero-byte files |
|
|
76
|
+
| `--top-n <n>` | Show top N largest files |
|
|
77
|
+
| `--max-depth <depth>` | Limit directory depth |
|
|
78
|
+
| `--min-size <bytes>` | Minimum file size filter |
|
|
79
|
+
| `--max-size <bytes>` | Maximum file size filter |
|
|
80
|
+
| `--date-from <YYYY-MM-DD>` | Files modified after this date |
|
|
81
|
+
| `--date-to <YYYY-MM-DD>` | Files modified before this date |
|
|
82
|
+
| `--csv [filename]` | Export full analysis to CSV |
|
|
83
|
+
| `--csv-large [filename]` | Export large-file list to CSV |
|
|
84
|
+
| `--csv-duplicates [filename]` | Export duplicate groups to CSV |
|
|
85
|
+
| `--html [filename]` | Generate HTML report with charts |
|
|
86
|
+
| `-c, --config [path]` | Path to config file |
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
### `dat watch [directory]`
|
|
91
|
+
|
|
92
|
+
Watch a directory and re-analyze automatically (debounced 2 s) after changes.
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
dat watch .
|
|
96
|
+
dat watch /path/to/project --duplicates --top-n 10
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
### `dat compare <dir1> <dir2>`
|
|
102
|
+
|
|
103
|
+
Compare two directories side by side.
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
dat compare src/ dist/
|
|
107
|
+
dat compare /project-v1 /project-v2 --json
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
### `dat init`
|
|
113
|
+
|
|
114
|
+
Interactively create a `.dir-analyzer.json` config file in the current directory.
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
dat init
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Configuration
|
|
123
|
+
|
|
124
|
+
Create `.dir-analyzer.json` in your project root (or run `dat init`):
|
|
125
|
+
|
|
126
|
+
```json
|
|
127
|
+
{
|
|
128
|
+
"excludePatterns": ["coverage", "tmp", "__pycache__"],
|
|
129
|
+
"clearDefaultExclusions": false,
|
|
130
|
+
"largeSizeThresholdMB": 100,
|
|
131
|
+
"enableDuplicateDetection": false,
|
|
132
|
+
"maxDepth": -1,
|
|
133
|
+
"topN": 10,
|
|
134
|
+
"showEmptyFiles": false
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
`dat` searches for this file starting in the current directory and walking up the tree. CLI flags always override config values.
|
|
139
|
+
|
|
140
|
+
**Default excluded directories** (unless `clearDefaultExclusions: true`): `node_modules`, `.git`, `.svn`, `.hg`, `dist`, `build`, `.cache`
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## JSON Output
|
|
145
|
+
|
|
146
|
+
All fields from a `dat analyze . --json` call:
|
|
147
|
+
|
|
148
|
+
```jsonc
|
|
149
|
+
{
|
|
150
|
+
"path": "/absolute/path",
|
|
151
|
+
"totalSizeBytes": 12345678,
|
|
152
|
+
"totalSizeFormatted": "12.3 MB",
|
|
153
|
+
"totalSizeMB": 12.3,
|
|
154
|
+
"folders": 42,
|
|
155
|
+
"files": 512,
|
|
156
|
+
"types": {
|
|
157
|
+
"images": 10, "videos": 0, "documents": 5,
|
|
158
|
+
"audio": 0, "code": 480, "archives": 2, "other": 15
|
|
159
|
+
},
|
|
160
|
+
"largeFiles": [{ "path": "...", "size": 104857600, "sizeFormatted": "105 MB" }],
|
|
161
|
+
"duplicateGroups": [{ "hash": "...", "size": 4096, "files": ["...", "..."], "wastedSpace": 4096 }],
|
|
162
|
+
"duplicateStats": { "totalGroups": 3, "wastedSpace": 12288, "wastedSpaceFormatted": "12.3 kB" },
|
|
163
|
+
"emptyFiles": [{ "path": "...", "mtime": "2024-01-01T00:00:00.000Z" }],
|
|
164
|
+
"topLargestFiles": [{ "path": "...", "size": 1048576, "sizeFormatted": "1.05 MB" }],
|
|
165
|
+
"treeView": "š project\nāāā ..."
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Migrating from v1
|
|
172
|
+
|
|
173
|
+
| v1 | v2 |
|
|
174
|
+
|---|---|
|
|
175
|
+
| `dir-analysis-tool` | `dat` (or still `dir-analysis-tool`) |
|
|
176
|
+
| `--path <dir>` | positional argument: `dat <dir>` |
|
|
177
|
+
| `--interactive` | `dat init` (creates config) |
|
|
178
|
+
| `--progress` / `--no-progress` | auto-detected from TTY |
|
|
179
|
+
| `--large-files <bytes>` | `--large-files <mb>` (value now in MB) |
|
|
180
|
+
| `bin/` build output | `dist/` build output |
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Requirements
|
|
185
|
+
|
|
186
|
+
- Node.js >= 18.0.0
|
|
187
|
+
- pnpm (for development)
|
|
188
|
+
|
|
189
|
+
## Contributing
|
|
190
|
+
|
|
191
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
192
|
+
|
|
193
|
+
## License
|
|
194
|
+
|
|
195
|
+
[MIT](LICENSE)
|