hammerspoon2-docs
    Preparing search index...

    Function base64Encode

    • Encode bytes as base64

      Parameters

      • data: string | number[] | ArrayBuffer | Uint8Array<ArrayBufferLike>

        The bytes to encode. A string is encoded as UTF-8

      Returns string

      Base64 encoded string

      Throws an Error on failure; wrap calls in try/catch to handle it.