mirror of
https://github.com/oven-sh/bun
synced 2026-02-28 04:21:04 +01:00
.copy with no args copies _ (last result) to clipboard. .copy <expr> evaluates the expression and copies the result. Strings are copied raw (not quoted), other values use Bun.inspect. Adds strings.ANSISkipper to strip ANSI escape sequences before encoding to clipboard. Uses bun.base64 for the OSC 52 payload. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>