1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 19:35:27 +02:00

npm-unpublish: add page (#14187)

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
ashborn 2024-10-13 23:28:52 +05:30 committed by GitHub
parent c659b7d63f
commit 1c4c70bb97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,24 @@
# npm unpublish
> Remove a package from the npm registry.
> More information: <https://docs.npmjs.com/cli/v8/commands/npm-unpublish>.
- Unpublish a specific package version:
`npm unpublish {{package_name}}@{{version}}`
- Unpublish the entire package:
`npm unpublish {{package_name}} --force`
- Unpublish a package that is scoped:
`npm unpublish @{{scope}}/{{package_name}}`
- Specify a timeout period before unpublishing:
`npm unpublish {{package_name}} --timeout {{time_in_milliseconds}}`
- To prevent accidental unpublishing, use the `--dry-run` flag to see what would be unpublished:
`npm unpublish {{package_name}} --dry-run`