Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-03 12:55:58 +00:00
parent e1f4a4ffa5
commit 1079e2c07a
12 changed files with 89 additions and 17 deletions

33
tldr/bun-pm-pkg Normal file
View File

@@ -0,0 +1,33 @@
---
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`