Add example of undeprecating entire package (#1135)

<!-- What / Why --> <!-- Describe the request in detail. What it does and why it's being changed. --> Hi npm team, first of all, thanks for your continued effort on npm and documentation! Add a command example of undeprecating an entire package, which appears to be missing from the documentation currently. The closest thing currently is this heading + sentence: > # Undeprecating a package or version > > To undeprecate a package, replace "<message>" with "" (an empty string) in one of the above commands. But I would argue it's a bit open to interpretation, and doesn't explicitly show the command to undeprecate an entire package. ## References <!-- Examples: Related to #0 Depends on #0 Blocked by #0 Fixes #0 Closes #0 --> --

Karl Horky committed Jun 3, 2024 at 16:06 UTC 483f48db3cb650f3f4aef8cd9702439b3d7875de
1 file changed +7 -1
content/packages-and-modules/updating-and-managing-your-published-packages/deprecating-and-undeprecating-packages-or-package-versions.mdx
+7 -1
@@ -74,7 +74,13 @@ If you have two-factor auth, add a one-time password to the command, `--otp=1234
74
75 To undeprecate a package, replace `"<message>"` with `""` (an empty string) in one of the above commands.
76
77 -For example, to undeprecate a package version, run the following command, replacing `<package-name>` with the name of your package, and `<version>` with your version number:
77 +For example, to undeprecate an entire package, run the following command, replacing `<package-name>` with the name of your package, and `<version>` with your version number:
78 +
79 +```
80 +npm deprecate <package-name> ""
81 +```
82 +
83 +Or to undeprecate only a single package version, run the following command, replacing `<package-name>` with the name of your package, and `<version>` with your version number:
84
85 ```
86 npm deprecate <package-name>@<version> ""