Skip to content

Commit 6cc70cc

Browse files
neverettzkat
authored andcommitted
docs: Add semver link and note on empty string format to deprecate doc (#68)
PR-URL: #68 Credit: @neverett Reviewed-By: @zkat
1 parent 1b2fabc commit 6cc70cc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/cli/npm-deprecate.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ npm-deprecate(1) -- Deprecate a version of a package
1010
This command will update the npm registry entry for a package, providing
1111
a deprecation warning to all who attempt to install it.
1212

13-
It works on version ranges as well as specific versions, so you can do
14-
something like this:
13+
It works on [version ranges](https://semver.npmjs.com/) as well as specific
14+
versions, so you can do something like this:
1515

1616
npm deprecate my-thing@"< 0.2.3" "critical bug fixed in v0.2.3"
1717

1818
Note that you must be the package owner to deprecate something. See the
1919
`owner` and `adduser` help topics.
2020

21-
To un-deprecate a package, specify an empty string (`""`) for the `message` argument.
21+
To un-deprecate a package, specify an empty string (`""`) for the `message`
22+
argument. Note that you must use double quotes with no space between them to
23+
format an empty string.
2224

2325
## SEE ALSO
2426

0 commit comments

Comments
 (0)