npm pkg get <field...>
Retrieves a value key, defined in your package.json file. It is possible to get multiple values and values for child fields
Arguments
Name | Description |
---|
field | Name of the field to get. You can view child fields by separating them with a period |
Options
Name | Description |
---|
--json | Show output in json format |
-w, --workspace <workspace...> | Enable running a command in the context of the configured workspaces of the current project |
-ws, --workspaces | Enable running a command in the context of all the configured workspaces |