@metreeca/core - v0.9.19
    Preparing search index...

    Function decodeBase64

    • Decodes a URL-safe base64 string.

      Restores + / / in place of - / _, reattaches any missing = padding, then decodes the resulting bytes as UTF-8. Both padded and unpadded input are accepted.

      Parameters

      • encoded: string

        The URL-safe base64-encoded string

      Returns string

      The decoded UTF-8 string

      InvalidCharacterError If encoded contains characters outside the URL-safe base64 alphabet