base64

    base64 command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.8
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    189

    #base64

    Encode and decode Base64 data through MoonX.

    #Usage

    moonx cli/base64 input.txt moonx cli/base64 --decode encoded.txt > decoded.txt printf 'hello' | moonx cli/base64 -w 0

    Read one file or stdin and write stdout. Encoding wraps at 76 characters by default; -w 0 also removes the trailing newline.

    #Common options

    OptionDescription
    -d, --decodeDecode input; embedded newlines are accepted.
    -i, --ignore-garbageDiscard non-alphabet bytes while decoding.
    -w VALUE, --wrap VALUESet output width; 0 disables wrapping and the final newline. Default: 76.
    --helpShow help.
    --versionShow the version.
    -DDecode input; embedded newlines are accepted.

    #Notes

    • Decoding streams input and may emit a valid prefix before reporting invalid data. Ignoring garbage does not make invalid padding valid.
    • -D is a project alias for --decode.

    See the compatibility guide for the supported profile.

    Source Files