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

npm-{owner, author}: add page (#14605)

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
CanonNi 2024-11-04 02:56:04 +08:00 committed by GitHub
parent e9d07c01ab
commit 0e33fcc300
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,7 @@
# npm-author
> This command is an alias of `npm owner`.
- View documentation for the original command:
`tldr npm owner`

16
pages/common/npm-owner.md Normal file
View file

@ -0,0 +1,16 @@
# npm-owner
> Manage ownership of published packages.
> More information: <https://docs.npmjs.com/cli/commands/npm-owner>.
- Add a new user as a maintainer of a package:
`npm owner add {{username}} {{package_name}}`
- Remove a user from a package's owner list:
`npm owner rm {{username}} {{package_name}}`
- List all owners of a package:
`npm owner ls {{package_name}}`