Буфер от Base64
const b64string = /* whatever */;
const buf = Buffer.from(b64string, 'base64');
Ugliest Unicorn
const b64string = /* whatever */;
const buf = Buffer.from(b64string, 'base64');
const buf = Buffer.from("sk_test_tra6ezsW3BtPPXQa:").toString('base64');
const buf = Buffer.from("th:").toString('base64');