We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fd7eec commit 5f59f80Copy full SHA for 5f59f80
docs/content/commands/npm-pkg.md
@@ -76,6 +76,14 @@ Returned values are always in **json** format.
76
npm pkg get contributors[0].email
77
```
78
79
+ For complex fields you can also name a property in square brackets
80
+ to specifically select a child field. This is especially helpful
81
+ with the exports object:
82
+
83
+ ```bash
84
+ npm pkg get "exports[.].require"
85
+ ```
86
87
* `npm pkg set <field>=<value>`
88
89
Sets a `value` in your `package.json` based on the `field` value. When
0 commit comments