Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/levo/lib/lib.deno_runtime.d.ts>btoa

Server side rendering with The Elm Architecture in Deno
Latest
function btoa
import { btoa } from "https://deno.land/x/levo@v0.0.27/lib/lib.deno_runtime.d.ts";

Creates a base-64 ASCII encoded string from the input string.

console.log(btoa("hello world"));  // outputs "aGVsbG8gd29ybGQ="

Parameters

s: string

Returns

string