import { Bson } from "https://deno.land/x/mongo@v0.32.0/mod.ts";
const { b64 } = 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 |