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

    Function encodeBase64

    • Encodes a string to URL-safe base64.

      Converts the input to UTF-8 bytes, applies standard base64 encoding, then substitutes + / / with - / _ and strips the trailing = padding.

      Parameters

      • plain: string

        The string to encode

      Returns string

      The URL-safe base64 representation of plain