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

x/xserver/src/deps.ts>encodeBase64Url

X-Server a Deno server module with middleware
Go to Latest
function encodeBase64Url
import { encodeBase64Url } from "https://deno.land/x/xserver@5.3.0/src/deps.ts";

Convert data into a base64url-encoded string.

Examples

Example 1

import { encodeBase64Url } from "https://deno.land/std@0.224.0/encoding/base64url.ts";

encodeBase64Url(new TextEncoder().encode("foobar")); // "Zm9vYmFy"

Parameters

data: ArrayBuffer | Uint8Array | string

Returns

string