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

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

Convenience function for converting base64 encoded string to an ArrayBuffer instance

Parameters

arrBuf: ArrayBuffer
  • ArrayBuffer to be encoded
optional
urlMode: boolean

Returns

string
  • Base64 representation of data