Version 0.2.2 behavior is documented here. Thesupport record separates local verification frompublished MoonX behavior; moonx examples use registry releases.
Base64 encode or decode a file or stdin:
printf 'hello' | moonx cli/base64
moonx cli/base64 -d encoded.txt
moonx cli/base64 -w0 big.bin # no wrapping or final newline
Options: -d/-D/--decode decode (embedded newlines are always accepted),-i/--ignore-garbage discard non-alphabet bytes while decoding, and-w N/--wrap=N wrap encoded output after N characters (default 76, 0disables wrapping and the terminal newline); attached -w0 is accepted.The alphabet is standard Base64 with = padding. Garbage mode ignoresnon-alphabet bytes; malformed Base64can still fail.
With no file operand, the command silently reads stdin until EOF, matching theupstream terminal, pipe, redirection, and explicit - behavior.
Standalone --version prints exactly base64 0.2.2 followed by onenewline. Standalone --help starts with Usage: base64, lists bothmetadata options, and ends with a newline. Both write to stdout, leave stdinunread, and exit with status 0. Exact-version publication and verificationremain recorded separately in the support record.