Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWassim Chegham <1699357+manekinekko@users.noreply.github.com>2022-02-17 01:00:50 +0300
committerGitHub <noreply@github.com>2022-02-17 01:00:50 +0300
commit9275856eb75e7c394a3c7617c2b495aba35ee2de (patch)
treeb68f4bff83ea27460496216b5c14fb79f86f01d1 /lib
parentfb13bdaf12dde3ef5685a77354e51a9cfa579879 (diff)
docs: update usage example for npm pkg (#4424)
Add example for setting array values Fixes #4320
Diffstat (limited to 'lib')
-rw-r--r--lib/commands/pkg.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/commands/pkg.js b/lib/commands/pkg.js
index 007932429..6ca892293 100644
--- a/lib/commands/pkg.js
+++ b/lib/commands/pkg.js
@@ -9,6 +9,8 @@ class Pkg extends BaseCommand {
'set <key>=<value> [<key>=<value> ...]',
'get [<key> [<key> ...]]',
'delete <key> [<key> ...]',
+ 'set [<array>[<index>].<key>=<value> ...]',
+ 'set [<array>[].<key>=<value> ...]',
]
static params = [