nid2-cli 1.1.1 โ 1.1.2
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/README.md +21 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,13 +56,13 @@ nid2 [options]
|
|
|
56
56
|
|
|
57
57
|
### ๐ Available Options
|
|
58
58
|
|
|
59
|
-
| Option
|
|
60
|
-
|
|
|
61
|
-
| `--package-name`
|
|
62
|
-
| `--package-version`
|
|
63
|
-
| `--num-downloads`
|
|
64
|
-
| `--max-concurrent-downloads` | `-m`
|
|
65
|
-
| `--download-timeout`
|
|
59
|
+
| Option | Short | Type | Required | Description |
|
|
60
|
+
| :-- | --- | --- | --- | :-- |
|
|
61
|
+
| `--package-name` | `-p` | `string` | `true` | NPM package name to simulate downloads for |
|
|
62
|
+
| `--package-version` | `-v` | `string` | `false` | Package version (defaults to latest if not specified) |
|
|
63
|
+
| `--num-downloads` | `-n` | `number` | `false` | Total number of downloads to simulate |
|
|
64
|
+
| `--max-concurrent-downloads` | `-m` | `number` | `false` | Maximum concurrent downloads at once |
|
|
65
|
+
| `--download-timeout` | `-t` | `number` | `false` | Download timeout in milliseconds |
|
|
66
66
|
|
|
67
67
|
### ๐ Usage Examples
|
|
68
68
|
|
|
@@ -114,14 +114,14 @@ npm install
|
|
|
114
114
|
|
|
115
115
|
### ๐งช Available Scripts
|
|
116
116
|
|
|
117
|
-
| Script
|
|
118
|
-
|
|
|
119
|
-
| `npm run dev`
|
|
117
|
+
| Script | Description |
|
|
118
|
+
| :-- | --- |
|
|
119
|
+
| `npm run dev` | Run in development mode with file watching |
|
|
120
120
|
| `npm run dev:cli` | Run CLI in development mode with file watching |
|
|
121
|
-
| `npm run build`
|
|
122
|
-
| `npm start`
|
|
123
|
-
| `npm test`
|
|
124
|
-
| `npm run format`
|
|
121
|
+
| `npm run build` | Compile TypeScript to JavaScript |
|
|
122
|
+
| `npm start` | Run compiled JavaScript |
|
|
123
|
+
| `npm test` | Run test suite with coverage |
|
|
124
|
+
| `npm run format` | Format code and fix linting issues |
|
|
125
125
|
|
|
126
126
|
## โ๏ธ Configuration
|
|
127
127
|
|
|
@@ -143,13 +143,13 @@ export default config;
|
|
|
143
143
|
|
|
144
144
|
### Configuration Options
|
|
145
145
|
|
|
146
|
-
| Property
|
|
147
|
-
|
|
|
148
|
-
| `packageName`
|
|
149
|
-
| `packageVersion`
|
|
150
|
-
| `numDownloads`
|
|
151
|
-
| `maxConcurrentDownloads` | `number`
|
|
152
|
-
| `downloadTimeout`
|
|
146
|
+
| Property | Type | Description | Example |
|
|
147
|
+
| :-- | --- | :-- | --- |
|
|
148
|
+
| `packageName` | `string` | NPM package to simulate downloads for | `"lodash"` |
|
|
149
|
+
| `packageVersion` | `string` (optional) | Specific package version | `"4.17.21"` |
|
|
150
|
+
| `numDownloads` | `number` | Total downloads to simulate | `1000` |
|
|
151
|
+
| `maxConcurrentDownloads` | `number` | Parallel downloads at once | `300` |
|
|
152
|
+
| `downloadTimeout` | `number` | Timeout per download (ms) | `3000` |
|
|
153
153
|
|
|
154
154
|
### โก Performance Tuning
|
|
155
155
|
|