mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
34 lines
635 B
Plaintext
34 lines
635 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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 get`
|
|
|
|
- Get a single property:
|
|
|
|
`bun pm pkg get {{property}}`
|
|
|
|
- Get multiple properties:
|
|
|
|
`bun pm pkg get {{property1 property2 property3 ...}}`
|
|
|
|
- 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 fix`
|