diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-02-09 22:14:40 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-02-11 21:42:15 +0300 |
commit | 7e1e84181ccaca8a8b499a21b1aa7d731a14d5b7 (patch) | |
tree | 6cdf60ec333266700d530f479a1b6dd8cd2c2609 /docs | |
parent | ef687f545b177d0496ce74faacf1bf738978355a (diff) |
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: https://github.com/npm/cli/pull/2662
Credit: @ethomson
Close: #2662
Reviewed-by: @wraithgar
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/commands/npm-diff.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/content/commands/npm-diff.md b/docs/content/commands/npm-diff.md index 0ce5e8dc8..0fe6a68fa 100644 --- a/docs/content/commands/npm-diff.md +++ b/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. |