Run JavaScript Code - Control Bun Runtime | Online Free DevTools by Hexmos
Run JavaScript code instantly with the Bun runtime environment. Manage dependencies and execute scripts quickly. Free online tool, no registration required.
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.jsonscript:
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