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

NameDescription
fieldName of the field to get. You can view child fields by separating them with a period

Options

NameDescription
--jsonShow output in json format
-w, --workspace <workspace...>Enable running a command in the context of the configured workspaces of the current project
-ws, --workspacesEnable running a command in the context of all the configured workspaces