You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 13, 2024. It is now read-only.
Only run partial when explicitly asked specifically to just run "--missing" or "--unused"
This is breaking as the default check is now changing, which may cause failures
Copy file name to clipboardexpand all lines: readme.md
+8-3
Original file line number
Diff line number
Diff line change
@@ -34,31 +34,36 @@ $ dependency-check <path to module file(s), package.json or module folder>
34
34
35
35
$ dependency-check ./package.json
36
36
Success! All dependencies used in the code are listed in package.json
37
+
Success! All dependencies in package.json are used in the code
38
+
$ dependency-check ./package.json --missing
39
+
Success! All dependencies used in the code are listed in package.json
37
40
$ dependency-check ./package.json --unused
38
41
Success! All dependencies in package.json are used in the code
39
42
40
43
# or with file input instead:
41
44
42
45
$ dependency-check ./index.js
43
46
Success! All dependencies used in the code are listed in package.json
47
+
Success! All dependencies in package.json are used in the code
44
48
45
49
# even with globs and multiple inputs:
46
50
47
51
$ dependency-check ./test/**/*.js ./lib/*.js
48
52
Success! All dependencies used in the code are listed in package.json
53
+
Success! All dependencies in package.json are used in the code
49
54
```
50
55
51
56
`dependency-check` exits with code 1 if there are discrepancies, in addition to printing them out
52
57
53
58
To always exit with code 0 pass `--ignore`
54
59
55
-
### --missing (default)
60
+
### --missing
56
61
57
-
running `dependency-check ./package.json` will check to make sure that all modules in your code are listed in your package.json
62
+
running `dependency-check ./package.json --missing` will only do the check to make sure that all modules in your code are listed in your package.json
58
63
59
64
### --unused, --extra
60
65
61
-
running `dependency-check ./package.json --unused` will do the inverse of the default missing check and will tell you which modules in your package.json dependencies **were not used** in your code
66
+
running `dependency-check ./package.json --unused` will only do the inverse of the missing check and will tell you which modules in your package.json dependencies **were not used** in your code
0 commit comments