base64

    base64 command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.7
    License
    Apache-2.0
    Last updated
    4 days ago
    Downloads
    167

    #base64

    Development candidate: cli/base64@0.2.7. Publication is separate; latest.json records the uploaded coordinates.

    Encode and decode Base64 for MoonX.

    moonx cli/base64@0.2.7 [-d|-D] [-i] [-w COLS] [FILE]

    #Supported scope

    Encode files or stdin using the standard alphabet and = padding. With no file, or -, read stdin. Default output width is 76.

    #Options

    OptionDescription
    -d, -D, --decodeDecode input; embedded newlines are accepted.
    -i, --ignore-garbageDiscard non-alphabet bytes while decoding.
    -w, --wrap=COLSSet output width; 0 disables wrapping and the final newline.
    --help / --versionShow help / package version.

    #Extension and diagnostic contract

    Project alias: -D selects -d/--decode; -D is not a GNU coreutils option. Decoding retains determined bytes before invalid input, checks canonical tail bits, and accepts missing final padding or concatenated padded groups (GNU 9.11).

    See the finite option and diagnostic profile for the scope and upstream distinction.

    #Argument and exit-status contract

    Ordinary option/operand errors exit 1; documented capability refusals retain their own status.

    #Limitations

    • Ignoring garbage does not make malformed Base64 valid.

    #Examples

    printf 'hello' | moonx cli/base64@0.2.7 moonx cli/base64@0.2.7 -d encoded.txt

    Source Files