W3cubDocs

/Deno

btoa

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

console.log(btoa("hello world"));  // outputs "aGVsbG8gd29ybGQ="
function btoa(s: string): string;
btoa(s: string): string

Parameters

s: string

Return Type

string

© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/btoa