Bun 은 base64 문자열을 인코딩 및 디코딩하기 위한 Web 표준 atob 및 btoa 함수를 구현합니다.
ts
const data = "hello world";
const encoded = btoa(data); // => "aGVsbG8gd29ybGQ="
const decoded = atob(encoded); // => "hello world"Bun 에 구현된 Web API 에 대한 전체 설명은 문서 > Web API 를 참조하세요.