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

x/endofunctor/components/encode/b64toUrl.mjs>default

🌍 Vixeny: A runtime-agnostic, performance-centric library championing functional purity for modern web development.
Go to Latest
variable default
import { default } from "https://deno.land/x/endofunctor@v0.0.921/components/encode/b64toUrl.mjs";

Selects and returns a function to convert Base64 strings to Base64Url strings based on the runtime environment.

The function checks the runtime (Bun, Deno, or Node) and returns the respective conversion function. If the runtime is not Bun or Deno, it defaults to Node.

Examples

const base64ToBase64Url = unwrapBase64ToBase64UrlFunction(); const myBase64UrlString = base64ToBase64Url(myBase64String);

type

() => unknown