Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/b64/types/base64.d.ts>base64.toString

Base64 and base64url to string or arraybuffer, and back. Works in Node, Deno or browser.
Latest
function base64.toString
import { base64 } from "https://deno.land/x/b64@1.1.28/types/base64.d.ts";
const { toString } = base64;

Convenience function for converting base64 to string

Parameters

str: string
  • Base64 encoded string to be decoded
optional
urlMode: boolean
  • If set to true, URL mode string will be expected

Returns

string
  • Decoded string