mirror of
https://github.com/oven-sh/bun
synced 2026-03-01 13:01:06 +01:00
## Summary - Adds `bun repl -e <script>` / `-p <script>` for non-interactive evaluation using REPL semantics (object literal wrapping, declaration hoisting), draining the event loop before exit. Returns exit code 1 on error. - Adds `docs/runtime/repl.mdx` documenting the interactive REPL (commands, keybindings, special variables, top-level await, imports) and the new non-interactive mode. - Updates bash/fish/zsh completions for the `repl` subcommand and its flags. ## Test plan - [x] `bun bd test test/js/bun/repl/repl.test.ts` — all 103 tests pass (20 new) - [x] `USE_SYSTEM_BUN=1 bun test` — new tests fail (validates they test new behavior) - [x] `bun run zig:check-all` — compiles on all platforms - [x] `bash -n` / `fish -n` / `zsh -n` syntax checks on completion files 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Bun Documentation
Official documentation for Bun: the fast, all-in-one JavaScript runtime.
Development
Install the Mintlify CLI to preview the documentation locally:
bun install -g mint
Run the development server:
mint dev
The site will be available at http://localhost:3000.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.