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.
Latest
function base64.fromArrayBuffer
import { base64 } from "https://deno.land/x/b64@1.1.28/types/base64.d.ts";
const { fromArrayBuffer } = base64;

Convenience function for creating a base64 encoded string from an ArrayBuffer instance

Parameters

arrBuf: ArrayBuffer
  • ArrayBuffer to be encoded
optional
urlMode: boolean
  • If set to true, URL mode string will be returned

Returns

string
  • Base64 representation of data