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.toArrayBuffer

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

Convenience function for converting a base64 encoded string to an ArrayBuffer instance

Parameters

data: string
  • Base64 representation of data
optional
urlMode: boolean
  • If set to true, URL mode string will be expected

Returns

ArrayBuffer
  • Decoded data