/encoding/base64url/encodeBytes
stdEncodes the given bytes into Base64URL.
Type signature
(bytes: number[], context?: EncodeContext) => string
Examples
encodeBytes([
0xc2,
0x67,
0xeb,
0xa7,
0x6d,
0x3e,
0x6c,
0x1b,
0x10,
0x7c,
]);
// ⇒ "w4Jnw6vCp20-bBsQfA"
Try in REPL
Questions
- How to encode bytes as Base64URL?