Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/ext/web/lib.deno_web.d.ts>btoa

A modern runtime for JavaScript and TypeScript.
Go to Latest
function btoa
import { btoa } from "https://deno.land/x/deno@v1.38.4/ext/web/lib.deno_web.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