• Home
  • Raw
  • Download

Lines Matching full:diff

1 .TH "NPM-DIFF" "1" "July 2023" "" ""
3 \fBnpm-diff\fR - The registry diff command
8 npm diff \[lB]...<paths>\[rB]
13 Similar to its \fBgit diff\fR counterpart, this command will print diff patches of files for packag…
16 \fBnpm diff --diff=<spec-a> --diff=<spec-b>\fR
18 …Bnpm diff --diff=pkg@1.0.0 --diff=pkg@^2.0.0\fR. It's also possible to compare across forks of any…
20 …sible to compare directories or git repositories, e.g: \fBnpm diff --diff=pkg@latest --diff=./pack…
26 npm diff --diff=abbrev@1.1.0 --diff=abbrev@1.1.1
34 diff --git a/package.json b/package.json
53 npm diff --diff=https://github.com/npm/libnpmdiff --diff=./local-path
59 \fBnpm diff\fR (in a package directory, no arguments):
61 If the package is published to the registry, \fBnpm diff\fR will fetch the tarball version tagged a…
65 \fBnpm diff --diff=<pkg-name>\fR (in a package directory):
67diff\fR will work in a similar way to \fB\fBnpm-outdated\fR\fR \fI\(lanpm-outdated\(ra\fR and reac…
73 npm diff --diff=abbrev
77 That will request from the registry its most up to date version and will print a diff output compar…
79 \fBnpm diff --diff=<spec-a>\fR (in a package directory):
87 npm diff --diff=pkg@2.0.0
91 It will effectively be an alias to \fBnpm diff --diff=pkg@1.0.0 --diff=pkg@2.0.0\fR.
93 \fBnpm diff --diff=<semver-a> \[lB]--diff=<semver-b>\[rB]\fR (in a package directory):
95 Using \fBnpm diff\fR along with semver-valid version numbers is a shorthand to compare different ve…
97 …amed \fBpkg\fR running \fBnpm diff --diff=1.0.0 --diff=1.0.1\fR is the same as running \fBnpm diff
105 npm diff --diff=1.0.0 --diff=1.1.0
111 Note that tag names are not valid \fB--diff\fR argument values, if you wish to compare to a publish…
114 …sing file names or globs pattern matching in order to limit the result of diff patches to only a s…
118 npm diff --diff=pkg@2 ./lib/ CHANGELOG.md
122 In the example above the diff output is only going to print contents of files located within the fo…
124 .SS "\fBdiff\fR"
133 Define arguments to compare in \fBnpm diff\fR.
134 .SS "\fBdiff-name-only\fR"
143 Prints only filenames when using \fBnpm diff\fR.
144 .SS "\fBdiff-unified\fR"
153 The number of lines of context to print in \fBnpm diff\fR.
154 .SS "\fBdiff-ignore-all-space\fR"
163 Ignore whitespace when comparing lines in \fBnpm diff\fR.
164 .SS "\fBdiff-no-prefix\fR"
173 Do not show any source or destination prefix in \fBnpm diff\fR output.
175 Note: this causes \fBnpm diff\fR to ignore the \fB--diff-src-prefix\fR and \fB--diff-dst-prefix\fR …
176 .SS "\fBdiff-src-prefix\fR"
185 Source prefix to be used in \fBnpm diff\fR output.
186 .SS "\fBdiff-dst-prefix\fR"
195 Destination prefix to be used in \fBnpm diff\fR output.
196 .SS "\fBdiff-text\fR"
205 Treat all files as text in \fBnpm diff\fR.
238 When used by the \fBnpm diff\fR command, this is the tag used to fetch the tarball that will be com…