npm pkg
Show or modify
package.jsonproperties. More information: https://docs.npmjs.com/cli/npm-pkg/.
- Get the value of a specific property:
npm pkg get
- Get multiple properties at once:
npm pkg get
- Get multiple values across all workspaces:
npm pkg get
- Get a nested or array property value:
npm pkg get
- Set a property to a specific value:
npm pkg set =
- Set multiple properties at once:
npm pkg set = =
- Delete a property from
package.json:
npm pkg delete
- Auto-fix common errors in
package.json:
npm pkg fix
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
