Weird64 API - v0.1.0
    Preparing search index...

    Function encodeBinaryString

    • Encodes a string made exclusively of 0 and 1 characters as Weird64.

      Parameters

      • binary: string

        The binary string to encode.

      • charset: string = DEFAULT_CHARSET

        A string containing exactly 64 unique characters.

      Returns string

      The encoded Weird64 value.

      encodeBinaryString('101010'); // "rG"
      

      TypeError if binary contains a character other than 0 or 1.

      RangeError if the character set is invalid.