Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-03 00:20:54 +00:00
parent 922b1aa234
commit 848b78740c
27 changed files with 237 additions and 33 deletions

42
tldr/bun-pm Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun pm
> A set of utilities for working with Bun's package manager.
> Some subcommands such as `pack`, `pkg` have their own usage documentation.
> More information: <https://bun.com/docs/pm/cli/pm>.
- Create a tarball of the current workspace:
`bun pm pack`
- Print the path to the `bin` directory:
`bun pm bin`
- List installed dependencies:
`bun pm ls`
- Print the npm registry username:
`bun pm whoami`
- Generate and print the hash of the current lockfile:
`bun pm hash`
- Print the path to Bun's global module cache:
`bun pm cache`
- Migrate another package manager's lockfile without installing anything:
`bun pm migrate`
- Get a property from `package.json`:
`bun pm pkg get {{property}}`