happy-codec
    Preparing search index...

    Interface DecodeBase64Options

    Options for decodeBase64. Mirrors the options accepted by the native Uint8Array.fromBase64.

    1.1.0

    interface DecodeBase64Options {
        alphabet?: "base64" | "base64url";
        lastChunkHandling?: "loose" | "strict" | "stop-before-partial";
    }
    Index

    Properties

    alphabet?: "base64" | "base64url"

    Which base64 alphabet to use.

    • 'base64' (default): standard alphabet (+, /).
    • 'base64url': URL-safe alphabet (-, _).
    'base64'
    
    lastChunkHandling?: "loose" | "strict" | "stop-before-partial"

    How to handle an incomplete final chunk of input.

    • 'loose' (default): accept and decode available bits.
    • 'strict': require correct padding; throw on incomplete chunks.
    • 'stop-before-partial': silently ignore an incomplete final chunk.
    'loose'