import { mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { b64 } = mongo.Bson;
encode
and decode
for
base64 encoding.
This module is browser compatible.
Functions
Decodes a given RFC4648 base64 encoded string | |
CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation |