Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-13 00:20:17 +00:00
parent 8b085234e1
commit 366b13ffac
31 changed files with 160 additions and 38 deletions

38
tldr/bun-add Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun add
> Modern JavaScript runtime, package manager, bundler, and test runner.
> Note: `a` can be used as an alias for `add`.
> More information: <https://bun.com/docs>.
- Install a single package:
`bun add {{package}}`
- Install multiple packages:
`bun add {{package1 package2 ...}}`
- Install from a Git repository:
`bun add {{git_url}}`
- Install a specific version:
`bun add {{package}}@{{version}}`
- Install from local file or directory:
`bun add file:{{path/to/file_or_directory}}`
- Add a dev dependency:
`bun add {{[-d|--dev]}} {{package}}`
- Add a package globally:
`bun add {{[-g|--global]}} {{package}}`