Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function b64Encode
Re-export
import { b64Encode } from "https://deno.land/x/simple_utility@v1.6.0/mod.universal.ts";

Convert from binary to base64 encoded string.

Examples

Example 1

const bin = await Deno.readFile("./file");
const encode = b64Encode(bin);
const decode = b64Decode(encode);

Parameters

data: Uint8Array

Returns

string