Safe Base64 encode using URL-safe alphabet.
Converts a buffer to Base64 string using URL-safe characters.
The buffer to encode
URL-safe Base64 encoded string without padding
const buffer = Buffer.from('Hello, World!')const encoded = safeBase64Encode(buffer)console.log(encoded) // SGVsbG8sIFdvcmxkIQ Copy
const buffer = Buffer.from('Hello, World!')const encoded = safeBase64Encode(buffer)console.log(encoded) // SGVsbG8sIFdvcmxkIQ
Safe Base64 encode using URL-safe alphabet.
Converts a buffer to Base64 string using URL-safe characters.