LinuxCommandLibrary

bun

JavaScript runtime and toolkit.

TLDR

Run a JavaScript file or a package.json script

$ bun run [path/to/file|script_name]
copy


Run unit tests
$ bun test
copy


Download and install all the packages listed as dependencies in package.json
$ bun install
copy


Add a dependency to package.json
$ bun add [module_name]
copy


Remove a dependency from package.json
$ bun remove [module_name]
copy


Create a new Bun project in the current directory
$ bun init
copy


Start a REPL (interactive shell)
$ bun repl
copy


Upgrade Bun to the latest version
$ bun upgrade
copy

Copied to clipboard