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

    Function decodeBase64

    • Decode a 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 Base64 encoded string to decode

      Returns string

      The decoded string

      0.13.0

      decodeBase64("SGVsbG8="); // "Hello"
      decodeBase64("SGVsbG8gV29ybGQ="); // "Hello World"
      decodeBase64(""); // ""
      decodeBase64("77u/4oKs"); // "€"