Skip to main content
Deno 2 is finally 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.922/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