snippetbashTip
bun pm pkg — Manage package.json data with `get`, `set`, `delete`, and `fix` operations. More information: <https
Viewed 0 times
commandbun pm pkgclimanagejsonwithpackagedata
Problem
How to use the
bun pm pkg command: Manage package.json data with get, set, delete, and fix operations. More information: <https://bun.com/docs/pm/cli/pm#pkg>.Solution
bun pm pkg — Manage package.json data with get, set, delete, and fix operations. More information: <https://bun.com/docs/pm/cli/pm#pkg>.Get all properties from
package.json:bun pm pkg getGet a single property:
bun pm pkg get {{property}}Get multiple properties:
bun pm pkg get {{property1 property2 property3 ...}}Get nested property:
bun pm pkg get {{property}}.{{attribute}}Set a property:
bun pm pkg set {{property}}="{{value}}"Delete a property:
bun pm pkg delete {{property}}Automatically fix common issues in
package.json:bun pm pkg fixCode Snippets
Get all properties from `package.json`
bun pm pkg getGet a single property
bun pm pkg get {{property}}Get multiple properties
bun pm pkg get {{property1 property2 property3 ...}}Get nested property
bun pm pkg get {{property}}.{{attribute}}Set a property
bun pm pkg set {{property}}="{{value}}"Context
tldr-pages: common/bun pm pkg
Revisions (0)
No revisions yet.