From 0e33fcc3003cca1caaea043c1ac42c14f1daa96b Mon Sep 17 00:00:00 2001 From: CanonNi Date: Mon, 4 Nov 2024 02:56:04 +0800 Subject: [PATCH] npm-{owner, author}: add page (#14605) Co-authored-by: Wiktor Perskawiec --- pages/common/npm-author.md | 7 +++++++ pages/common/npm-owner.md | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 pages/common/npm-author.md create mode 100644 pages/common/npm-owner.md diff --git a/pages/common/npm-author.md b/pages/common/npm-author.md new file mode 100644 index 0000000000..ff6c19c2fe --- /dev/null +++ b/pages/common/npm-author.md @@ -0,0 +1,7 @@ +# npm-author + +> This command is an alias of `npm owner`. + +- View documentation for the original command: + +`tldr npm owner` diff --git a/pages/common/npm-owner.md b/pages/common/npm-owner.md new file mode 100644 index 0000000000..983155ff20 --- /dev/null +++ b/pages/common/npm-owner.md @@ -0,0 +1,16 @@ +# npm-owner + +> Manage ownership of published packages. +> More information: . + +- 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}}`