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
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -444,7 +444,9 @@ Usage:
444
444
ncu --filter [p]
445
445
ncu -f [p]
446
446
447
-
Include only package names matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function.
447
+
Include only package names matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function. Only included packages will be checked with `--peer`.
448
+
449
+
`--filter` runs _before_ new versions are fetched, in contrast to `--filterResults` which runs _after_.
448
450
449
451
The predicate function is only available in .ncurc.js or when importing npm-check-updates as a module, not on the command line.
Filters out upgrades based on a user provided function.
469
471
470
-
`filterResults` runs _after_ new versions are fetched, in contrast to `filter` and`filterVersion`, which run _before_. This allows you to filter out upgrades with `filterResults` based on how the version has changed (e.g. a major version change).
472
+
`filterResults` runs _after_ new versions are fetched, in contrast to `filter`, `reject`,`filterVersion`, and `rejectVersion`, which run _before_. This allows you to filter out upgrades with `filterResults` based on how the version has changed (e.g. a major version change).
471
473
472
474
Only available in .ncurc.js or when importing npm-check-updates as a module.
473
475
@@ -675,7 +677,9 @@ Usage:
675
677
ncu --reject [p]
676
678
ncu -x [p]
677
679
678
-
The inverse of `--filter`. Exclude package names matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function.
680
+
The inverse of `--filter`. Exclude package names matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function. This will also exclude them from the `--peer` check.
681
+
682
+
`--reject` runs _before_ new versions are fetched, in contrast to `--filterResults` which runs _after_.
679
683
680
684
The predicate function is only available in .ncurc.js or when importing npm-check-updates as a module, not on the command line.
681
685
@@ -711,7 +715,7 @@ The predicate function is only available in .ncurc.js or when importing npm-chec
return`Include only package names matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function. Only included packages will be checked with ${codeInline(
210
+
'--peer',
211
+
)}.
212
+
213
+
${codeInline('--filter')} runs _before_ new versions are fetched, in contrast to ${codeInline(
214
+
'--filterResults',
215
+
)} which runs _after_.
205
216
206
217
The predicate function is only available in .ncurc.js or when importing npm-check-updates as a module, not on the command line.
)}. Exclude package names matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function.
272
+
)}. Exclude package names matching the given string, wildcard, glob, comma-or-space-delimited list, /regex/, or predicate function. This will also exclude them from the ${codeInline(
273
+
'--peer',
274
+
)} check.
275
+
276
+
${codeInline('--reject')} runs _before_ new versions are fetched, in contrast to ${codeInline(
277
+
'--filterResults',
278
+
)} which runs _after_.
262
279
263
280
The predicate function is only available in .ncurc.js or when importing npm-check-updates as a module, not on the command line.
0 commit comments