• Home
  • Raw
  • Download

Lines Matching full:diff

3 <title>npm-diff</title>
139 <h1 id="npm-diff">npm-diff</h1>
140 <span class="description">The registry diff command</span>
149 <pre><code class="language-bash">npm diff [...&lt;paths&gt;]
152 <p>Similar to its <code>git diff</code> counterpart, this command will print diff patches
156 <p><code>npm diff --diff=&lt;spec-a&gt; --diff=&lt;spec-b&gt;</code></p>
158 <code>npm diff --diff=pkg@1.0.0 --diff=pkg@^2.0.0</code>. It's also possible to
160 e.g: <code>npm diff --diff=pkg@1.0.0 --diff=pkg-fork@1.0.0</code>.</p>
163 e.g: <code>npm diff --diff=pkg@latest --diff=./packages/pkg</code></p>
166 <pre><code class="language-bash">npm diff --diff=abbrev@1.1.0 --diff=abbrev@1.1.1
169 <pre><code class="language-bash">diff --git a/package.json b/package.json
184 <pre><code class="language-bash">npm diff --diff=https://github.com/npm/libnpmdiff --diff=./local-p…
192 <p><code>npm diff</code> (in a package directory, no arguments):</p>
193 <p>If the package is published to the registry, <code>npm diff</code> will fetch the
202 <p><code>npm diff --diff=&lt;pkg-name&gt;</code> (in a package directory):</p>
204 argument, <code>npm diff</code> will work in a similar way to
208 version is known <code>npm diff</code> will print diff patches comparing the
212 <pre><code class="language-bash">npm diff --diff=abbrev
215 will print a diff output comparing the currently installed version to this
219 <p><code>npm diff --diff=&lt;spec-a&gt;</code> (in a package directory):</p>
226 <pre><code class="language-bash">npm diff --diff=pkg@2.0.0
229 <code>npm diff --diff=pkg@1.0.0 --diff=pkg@2.0.0</code>.</p>
232 <p><code>npm diff --diff=&lt;semver-a&gt; [--diff=&lt;semver-b&gt;]</code> (in a package directory)…
233 <p>Using <code>npm diff</code> along with semver-valid version numbers is a shorthand
236 <code>pkg</code> running <code>npm diff --diff=1.0.0 --diff=1.0.1</code> is the same as running
237 <code>npm diff --diff=pkg@1.0.0 --diff=pkg@1.0.1</code>.</p>
242 <pre><code class="language-bash">npm diff --diff=1.0.0 --diff=1.1.0
246 <p>Note that tag names are not valid <code>--diff</code> argument values, if you wish to
250 pattern matching in order to limit the result of diff patches to only a subset
252 <pre><code class="language-bash">npm diff --diff=pkg@2 ./lib/ CHANGELOG.md
254 <p>In the example above the diff output is only going to print contents of files
258 <h4 id="diff"><code>diff</code></h4>
263 <p>Define arguments to compare in <code>npm diff</code>.</p>
264 <h4 id="diff-name-only"><code>diff-name-only</code></h4>
269 <p>Prints only filenames when using <code>npm diff</code>.</p>
270 <h4 id="diff-unified"><code>diff-unified</code></h4>
275 <p>The number of lines of context to print in <code>npm diff</code>.</p>
276 <h4 id="diff-ignore-all-space"><code>diff-ignore-all-space</code></h4>
281 <p>Ignore whitespace when comparing lines in <code>npm diff</code>.</p>
282 <h4 id="diff-no-prefix"><code>diff-no-prefix</code></h4>
287 <p>Do not show any source or destination prefix in <code>npm diff</code> output.</p>
288 <p>Note: this causes <code>npm diff</code> to ignore the <code>--diff-src-prefix</code> and
289 <code>--diff-dst-prefix</code> configs.</p>
290 <h4 id="diff-src-prefix"><code>diff-src-prefix</code></h4>
295 <p>Source prefix to be used in <code>npm diff</code> output.</p>
296 <h4 id="diff-dst-prefix"><code>diff-dst-prefix</code></h4>
301 <p>Destination prefix to be used in <code>npm diff</code> output.</p>
302 <h4 id="diff-text"><code>diff-text</code></h4>
307 <p>Treat all files as text in <code>npm diff</code>.</p>
331 <p>When used by the <code>npm diff</code> command, this is the tag used to fetch the
387 <a href="https://github.com/npm/cli/edit/latest/docs/content/commands/npm-diff.md">