Lines Matching full:diff
2 title: npm-diff
4 description: The registry diff command
10 npm diff [...<paths>]
15 Similar to its `git diff` counterpart, this command will print diff patches
18 * `npm diff --diff=<spec-a> --diff=<spec-b>`
21 `npm diff --diff=pkg@1.0.0 --diff=pkg@^2.0.0`. It's also possible to
23 e.g: `npm diff --diff=pkg@1.0.0 --diff=pkg-fork@1.0.0`.
27 e.g: `npm diff --diff=pkg@latest --diff=./packages/pkg`
33 npm diff --diff=abbrev@1.1.0 --diff=abbrev@1.1.1
39 diff --git a/package.json b/package.json
57 npm diff --diff=https://github.com/npm/libnpmdiff --diff=./local-path
65 * `npm diff` (in a package directory, no arguments):
67 If the package is published to the registry, `npm diff` will fetch the
76 * `npm diff --diff=<pkg-name>` (in a package directory):
79 argument, `npm diff` will work in a similar way to
83 version is known `npm diff` will print diff patches comparing the
90 npm diff --diff=abbrev
94 will print a diff output comparing the currently installed version to this
97 * `npm diff --diff=<spec-a>` (in a package directory):
108 npm diff --diff=pkg@2.0.0
112 `npm diff --diff=pkg@1.0.0 --diff=pkg@2.0.0`.
114 * `npm diff --diff=<semver-a> [--diff=<semver-b>]` (in a package directory):
116 Using `npm diff` along with semver-valid version numbers is a shorthand
120 `pkg` running `npm diff --diff=1.0.0 --diff=1.0.1` is the same as running
121 `npm diff --diff=pkg@1.0.0 --diff=pkg@1.0.1`.
130 npm diff --diff=1.0.0 --diff=1.1.0
133 Note that tag names are not valid `--diff` argument values, if you wish to
139 pattern matching in order to limit the result of diff patches to only a subset
143 npm diff --diff=pkg@2 ./lib/ CHANGELOG.md
146 In the example above the diff output is only going to print contents of files
152 #### `diff`
157 Define arguments to compare in `npm diff`.
161 #### `diff-name-only`
166 Prints only filenames when using `npm diff`.
170 #### `diff-unified`
175 The number of lines of context to print in `npm diff`.
179 #### `diff-ignore-all-space`
184 Ignore whitespace when comparing lines in `npm diff`.
188 #### `diff-no-prefix`
193 Do not show any source or destination prefix in `npm diff` output.
195 Note: this causes `npm diff` to ignore the `--diff-src-prefix` and
196 `--diff-dst-prefix` configs.
200 #### `diff-src-prefix`
205 Source prefix to be used in `npm diff` output.
209 #### `diff-dst-prefix`
214 Destination prefix to be used in `npm diff` output.
218 #### `diff-text`
223 Treat all files as text in `npm diff`.
254 When used by the `npm diff` command, this is the tag used to fetch the