Converts Base64 string into Base64URL one.

Type signature

(base64: string) => string

Examples

fromBase64("PDw/Pz8+Pg==");
// ⇒ "PDw_Pz8-Pg"
Try in REPL

Questions

  • How to convert Base64 to Base64URL?

TypeScript sourceJavaScript source