⌘K
bun
all
JavaScript runtime and toolkit. Includes a bundler, a test runner, and a package manager.
More info →Options (3)
booleanDownload and install all the packages listed as dependencies in `package.json`
Example:
bun {{[i|install]}}booleanAdd a dependency to `package.json`
Example:
bun {{[a|add]}} {{module_name}}booleanRemove a dependency from `package.json`
Example:
bun {{[rm|remove]}} {{module_name}}Examples (8)
Create a new Bun project in the current directory
bun initRun a JavaScript file or a `package.json` script
bun run path/to/file|script_nameRun unit tests
bun testDownload and install all the packages listed as dependencies in `package.json`
bun [i|install]Add a dependency to `package.json`
bun [a|add] module_nameRemove a dependency from `package.json`
bun [rm|remove] module_nameStart a REPL (interactive shell)
bun replUpgrade Bun to the latest version
bun upgrademade by @shridhargupta | data from tldr-pages