Encodes a string made exclusively of 0 and 1 characters as Weird64.
0
1
The binary string to encode.
A string containing exactly 64 unique characters.
The encoded Weird64 value.
encodeBinaryString('101010'); // "rG" Copy
encodeBinaryString('101010'); // "rG"
TypeError if binary contains a character other than 0 or 1.
TypeError
binary
RangeError if the character set is invalid.
RangeError
Encodes a string made exclusively of
0and1characters as Weird64.