Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

42
bun Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun
> JavaScript runtime and toolkit.
> Includes a bundler, a test runner, and a package manager.
> More information: <https://bun.sh>.
- Run a JavaScript file or a `package.json` script:
`bun run {{path/to/file|script_name}}`
- Run unit tests:
`bun test`
- Download and install all the packages listed as dependencies in `package.json`:
`bun install`
- Add a dependency to `package.json`:
`bun add {{module_name}}`
- Remove a dependency from `package.json`:
`bun remove {{module_name}}`
- Create a new Bun project in the current directory:
`bun init`
- Start a REPL (interactive shell):
`bun repl`
- Upgrade Bun to the latest version:
`bun upgrade`