Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/encoding/base64.ts>encode

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function encode
import { encode } from "https://deno.land/std@0.62.0/encoding/base64.ts";

Converts given data with base64 encoding

Parameters

data: string | ArrayBuffer

input to encode

Returns

string