<aside> <img src="/icons/sliders-horizontal_gray.svg" alt="/icons/sliders-horizontal_gray.svg" width="40px" />

목차

</aside>

비트 문자열 → 문자열(utf-8)

export function bitsToStringUtf8(bits: string[]) {
  const chars = bits.map((bit) => {
    const hexString = BigInt(`0b${bit}`).toString(16);
    return Buffer.from(hexString, "hex").toString("utf-8");
  });

  return chars.join("");
}