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

x/xdg/vendor/types/deno.d.ts>btoa

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
function btoa
import { btoa } from "https://deno.land/x/xdg@v10.3.0/vendor/types/deno.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