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

std/encoding/base64url.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.74.0/encoding/base64url.ts";

Converts given data with base64url encoding. Removes paddings '='.

Parameters

data: string | ArrayBuffer

input to encode

Returns

string