@nevware21/ts-utils
    Preparing search index...

    Function decodeBase64Url

    • Decode a URL-safe Base64 encoded string. A value that starts with the UTF-8 byte order mark and contains valid UTF-8 is decoded as UTF-8 text, all other values are decoded as one character per byte. Like atob(), ASCII whitespace is ignored and the padding is optional, a value which isn't valid Base64 is returned as-is.

      Parameters

      • value: string

        The URL-safe Base64 encoded string to decode

      Returns string

      The decoded string

      0.13.0

      decodeBase64Url("SGVsbG8"); // "Hello"
      decodeBase64Url("LSsvLw"); // "+++///"