mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-21 01:02:08 +00:00
Update cheatsheets
This commit is contained in:
14
tldr/bun
14
tldr/bun
@@ -9,6 +9,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Includes a bundler, a test runner, and a package manager.
|
||||
> More information: <https://bun.com/docs>.
|
||||
|
||||
- Create a new Bun project in the current directory:
|
||||
|
||||
`bun init`
|
||||
|
||||
- Run a JavaScript file or a `package.json` script:
|
||||
|
||||
`bun run {{path/to/file|script_name}}`
|
||||
@@ -19,19 +23,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Download and install all the packages listed as dependencies in `package.json`:
|
||||
|
||||
`bun install`
|
||||
`bun {{[i|install]}}`
|
||||
|
||||
- Add a dependency to `package.json`:
|
||||
|
||||
`bun add {{module_name}}`
|
||||
`bun {{[a|add]}} {{module_name}}`
|
||||
|
||||
- Remove a dependency from `package.json`:
|
||||
|
||||
`bun remove {{module_name}}`
|
||||
|
||||
- Create a new Bun project in the current directory:
|
||||
|
||||
`bun init`
|
||||
`bun {{[rm|remove]}} {{module_name}}`
|
||||
|
||||
- Start a REPL (interactive shell):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user