Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-21 00:18:36 +00:00
parent dc2926f45e
commit 374b6c8d34
4 changed files with 27 additions and 6 deletions

21
tldr/npm-deprecate Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm deprecate
> Mark a version or range of versions of an `npm` package as deprecated.
> More information: <https://docs.npmjs.com/cli/commands/npm-deprecate/>.
- Deprecate a specific version of a package:
`npm deprecate {{package_name}}@{{version}} "{{deprecation_message}}"`
- Deprecate a range of versions of a package:
`npm deprecate {{package_name}}@"<{{version_range}}" "{{deprecation_message}}"`
- Un-deprecate a specific version of a package:
`npm deprecate {{package_name}}@{{version}} ""`