Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
function encodeBase64Url
import { encodeBase64Url } from "https://deno.land/std@0.224.0/encoding/base64url.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("foobar"); // "Zm9vYmFy"

Parameters

data: ArrayBuffer | Uint8Array | string

The data to encode.

Returns

string

The base64url-encoded string.