CmdID

CmdID / Commands

npm-pkg

Show or modify package.json properties. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Get the value of a specific property

npm pkg get nameIdentify

Get multiple properties at once

npm pkg get nameIdentify

Get multiple values across all workspaces

npm pkg get name version --workspacesIdentify

Get a nested or array property value

npm pkg get contributors[0].emailIdentify

Set a property to a specific value

npm pkg set property=valueIdentify

Set multiple properties at once

npm pkg set property1=value1 property2=value2Identify

Delete a property from package.json

npm pkg delete scripts.buildIdentify

Auto-fix common errors in package.json

npm pkg fixIdentify