Open this example in the interactive library
Source code
import { Buffer, isUtf8, isAscii } from "node:buffer";
console.log(Buffer.from([251, 255]).toString("base64url"));
Sample output
-_8

Open this example in the interactive library
import { Buffer, isUtf8, isAscii } from "node:buffer";
console.log(Buffer.from([251, 255]).toString("base64url"));
-_8