From 1700d8a30eff4943982a023048749749c72891fa Mon Sep 17 00:00:00 2001 From: Austin Nazworth <98629900+anazworth@users.noreply.github.com> Date: Sat, 16 Sep 2023 17:16:42 -0400 Subject: [PATCH] bun: add page (#10725) Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/bun.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pages/common/bun.md diff --git a/pages/common/bun.md b/pages/common/bun.md new file mode 100644 index 000000000..c8fb45746 --- /dev/null +++ b/pages/common/bun.md @@ -0,0 +1,37 @@ +# bun + +> JavaScript runtime and toolkit. +> Includes a bundler, a test runner, and a package manager. +> More information: . + +- 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`