Skip to content
Permalink
Browse files
fix(docs): fix angle brackets in npm diff docs
Emphasizing them like we do everywhere else to fix encoding errors and
for consistency.

Also removed the `<String>` from the type definition as we don't do that
anywhere else.

PR-URL: #2662
Credit: @ethomson
Close: #2662
Reviewed-by: @wraithgar
  • Loading branch information
ethomson authored and wraithgar committed Feb 11, 2021
1 parent ef687f5 commit 7e1e84181ccaca8a8b499a21b1aa7d731a14d5b7
Showing with 6 additions and 6 deletions.
  1. +6 −6 docs/content/commands/npm-diff.md
@@ -82,11 +82,11 @@ of files for packages published to the npm registry.
When using a single package name (with no version or tag specifier) as an
argument, `npm diff` will work in a similar way to
[`npm-outdated`](npm-outdated) and reach for the registry to figure out
what current published version of the package named <pkg-name> will satisfy
its dependent declared semver-range. Once that specific version is known
`npm diff` will print diff patches comparing the current version of
<pkg-name> found in the local file system with that specific version
returned by the registry.
what current published version of the package named `<pkg-name>`
will satisfy its dependent declared semver-range. Once that specific
version is known `npm diff` will print diff patches comparing the
current version of `<pkg-name>` found in the local file system with
that specific version returned by the registry.
Given a package named `abbrev` that is currently installed:
@@ -155,7 +155,7 @@ located within the folder `./lib/` and changed lines of code within the
#### diff
* Type: Array<String>
* Type: Array
* Default: null
Defines npm package specifiers to compare using the `npm diff` command.

0 comments on commit 7e1e841

Please sign in to comment.