base32

    base32 command for MoonX.

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

    #base32

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

    Encode and decode Base32 for MoonX.

    Version: cli/base32@0.1.7. Published coordinates remain recorded in the release inventory.

    moonx cli/base32@0.1.7 [-d] [-i] [-w COLS] [FILE]

    #Supported scope

    Encode files or stdin with the RFC 4648 alphabet. With no file, or -, read stdin. Output wraps at 76 columns by default.

    Encoding emits complete groups as input arrives and keeps bounded working buffers. Padding and a final wrapped newline are emitted only at successful EOF; a later read or write error can leave earlier output intact.

    #Options

    OptionDescription
    -d, --decodeDecode input.
    -i, --ignore-garbageIgnore non-alphabet bytes when decoding.
    -w, --wrap=COLSSet output width; 0 disables wrapping and the final newline.
    --help / --versionShow help / package version.

    #Extension and diagnostic contract

    Decoding checks canonical tail bits and preserves complete-block failure prefixes. Missing final padding is accepted; incomplete explicit padding rejects (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

    • Lowercase symbols are invalid unless discarded with -i; malformed input can fail after emitting a valid prefix.
    • Nonstandard alphabets and locale-specific behavior are unsupported.
    • Decoding still reads the complete input before processing it; the encoding memory bound does not apply to decoding.

    #Examples

    printf 'hello' | moonx cli/base32@0.1.7 printf 'NBSWY3DP' | moonx cli/base32@0.1.7 -d

    Source Files