bun: add page (#10725)

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
pull/23/head
Austin Nazworth 2023-09-16 17:16:42 -04:00 committed by GitHub
parent fe83da73f9
commit 1700d8a30e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 37 additions and 0 deletions

37
pages/common/bun.md Normal file
View File

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