Skip to main content
Module

x/lume/deps/base64.ts

🔥 Static site generator for Deno 🦕
Very Popular
Latest
import * as lume from "https://deno.land/x/lume@v2.1.4/deps/base64.ts";

Utilities for base64 encoding and decoding.

This module is browser compatible.

import {
  encodeBase64,
  decodeBase64,
} from "https://deno.land/std@0.223.0/encoding/base64.ts";

const encoded = encodeBase64("foobar"); // "Zm9vYmFy"

decodeBase64(encoded); // Uint8Array(6) [ 102, 111, 111, 98, 97, 114 ]

Functions

Decodes a base64-encoded string.

Converts data into a base64-encoded string.