clear_node_modules 1.4.0 → 1.4.1
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/bin.js +5 -5
- package/package.json +1 -1
package/bin.js
CHANGED
|
@@ -20,7 +20,7 @@ if (isHelp) {
|
|
|
20
20
|
console.log(`
|
|
21
21
|
cnm v${version} - Clear Node Modules
|
|
22
22
|
|
|
23
|
-
Usage: npx
|
|
23
|
+
Usage: npx clear_node_modules [path] [limit] [folder]
|
|
24
24
|
|
|
25
25
|
Arguments:
|
|
26
26
|
path Target directory (default: current directory)
|
|
@@ -28,11 +28,11 @@ Arguments:
|
|
|
28
28
|
folder Folder name to delete (default: node_modules)
|
|
29
29
|
|
|
30
30
|
Examples:
|
|
31
|
-
npx
|
|
32
|
-
npx
|
|
33
|
-
npx
|
|
31
|
+
npx clear_node_modules # Clear all node_modules in current dir
|
|
32
|
+
npx clear_node_modules ./projects # Clear in specific directory
|
|
33
|
+
npx clear_node_modules ./ 100 # Only delete if > 100MB
|
|
34
34
|
|
|
35
|
-
After global install (npm i -g
|
|
35
|
+
After global install (npm i -g clear_node_modules):
|
|
36
36
|
cnm # Same as above, shorter command
|
|
37
37
|
`);
|
|
38
38
|
process.exit(0);
|